Log in

View Full Version : Sudden failure of a standard color


TCmullet
26th April 2024, 16:41
I have an elaborate function that eventually calls SubTitle(). I haven't used it in ages, but as I was setting it up to use it again, I got the strangest error:

'I don't know what "color_yellow" means.' This is the standard error handler in Avisynth. My code is this line:

ftcolor = defined(ftcolor) ? ftcolor : color_yellow


ftcolor is one of my many input parameters. You can see that I make it optional. It's the reference to color-yellow that is causing Avisynth to bomb. Why is that? It is said that all versions of Avisynth starting with 2.55 include all the color presets.

wonkey_monkey
26th April 2024, 18:02
You may have accidentally deleted or overwritten colors_rgb.avsi which should be in your plugins+/plugins64+ directories.

https://github.com/AviSynth/AviSynthPlus/blob/2b55ba40ec22652d72121fcef56b46da1fc2e427/distrib/ColorPresets/colors_rgb.avsi

TCmullet
26th April 2024, 19:34
Thanks. What's odd is that it WAS in:

C:\Program Files (x86)\AviSynth+\plugins+

When I moved it to:

C:\Program Files (x86)\AviSynth+\plugins

...it now works.

coolgit
27th April 2024, 17:52
Wonkey... i do have colors_rgb.avsi and colors_rgb.txt... is the txt file necessary?

TC... why move it? Just copy the file so you have one in 32 folder and one in 64 folder.