-
Changing specific keyframe that holds color value using expressions
Hi! I have been trying to adjust a keyframe in an animation that holds specifically a color value, so I can control that color state via a controller of some sort. I know there are ways to manipulate key values using the ‘linear()’ function, but somehow it doesn’t work on color values…Probably because the value type is not something that can be scaled? The error I get is: “ERROR: Argument 1 to linear() must be scalar”
Here is my current code:
t1 = key(1).value;
t2 = key(2).value;
v1 = 0;
v2 = hexToRgb(“739C8A”);
linear(value,t1,t2,v1,v2); <—- This part doesn’t work!
}else value
Any help would be much appreciated! Thank you!!!