Hmmm... That is weird I am trying to get the shape layers Hue to be controlled by one central Hue control, based on expressions. I have the following expression:
color = effect("Change Color (Global)")("Hue Transform");
change = 1;
convert = rgbToHsl("1,2,3,4color") - [.2, 2, 2, change];
hslToRgb(convert);
This one is with quotes, and I get the following error:
After Effects warning: invalid numeric result (divide by zero?)
Expression disabled.
Then without quotes and just "color":
color = effect("Change Color (Global)")("Hue Transform")
change = .2;
convert = rgbToHsl(color) - [0, 0, change];
hslToRgb(convert);
error:
After Effects warning: Bad method arguments: argument 1 to rgbToHsl() must be of dimension 4
Expression disabled.
Then with just numbers:
color = effect("Change Color (Global)")("Hue Transform")
change = .2;
convert = rgbToHsl(1,2,3,4) - [0, 0, change];
hslToRgb(convert);
After Effects warning: Bad method arguments: rgbToHsl() needs exactly 1 argument
Expression disabled.
So I do think it needs quotes. But I can't seem to figure it out..
Here is the .aep, maybe you could look at it and tell me what I am doing wrong:
http://dl.dropbox.com/u/17788937/Test%201%20copy.aep
Once again, thanks for all your help, I really appreciate it.
Cheers,
Dorian