-
Where do I add valueAtTime in this code?
Hi,
I’m curious if anybody out there could help me figure out how to make my expression do what I want?
Here goes:
x=thisComp.layer(“Controller”).effect(“x”)(“Slider”);
y=thisComp.layer(“Controller”).effect(“y”)(“Slider”);
z=thisComp.layer(“Controller”).effect(“z”)(“Slider”);
value+[x,y,(index*(z))]The expression above is great! It does everything I want it to except for one little thing. I’d like to add the valueAtTime function to it so I can delay the position of each corresponding layer. It should be straight forward, but no matter where I add it, I always get an error.
The expression below almost gets me everything I want except for one little thing. I can’t control individual layers positions once the expression is added. With the above expression, I can still offset each layer with my slider and also move any layer manually.
x=thisComp.layer(“Controller”).effect(“x”)(“Slider”);
y=thisComp.layer(“Controller”).effect(“y”)(“Slider”);
z=thisComp.layer(“Controller”).effect(“z”)(“Slider”);
thisComp.layer(index+1).position.valueAtTime(time – .5)+[x,y,z];So, there you have it. Nothing crazy, I hope it’s just a syntax thing. Any help is greatly appreciated.
Thanks,
Steve
Steven Kutny
Digital Artist
http://www.stevenkutny.com