-
How do I initiate a timed animation within an expression?
Hello,
I currently have an AECS3 expression that uses a control layer’s Red channel values to determine the y rotation of a 3d object (code attached).
It’s working great, but what I’d like to do is instead of having it switch instantly to 180 degrees when the condition is met, to initiate a six-frame rotation to 180 degrees.
How do I do that?
Thanks,
Thomas Horne
target = thisComp.layer("controller Comp 1");
color = target.sampleImage([transform.position[0],transform.position[1]], [.5,.5], true, time);if (color[0] == 0){
0;
}else{
180;
}