-
Expression doesn’t work with keyframes
Hi, I’ve been searching the forum and I think I know where my problem comes from but I can’t get it to work.
I’ve made an expression with which I control the rotation of several layers of a precomp with a controller that is in another comp. The expression works great but when I apply keyframes it stops working. I’ve applied the expression to the rotation of the layer:
comp(“Binny_Front_FULL”).layer(“Brazo L”).transform.rotation
The precomposition has the time remapped with an expression to be able to select the frame that I want to show at any given time:
a=thisComp.layer(“Brazo Control L”).effect(“Slider Control”)(“Slider”)
framesToTime(a)
I think the problem comes from the remapper. I’ve tried to apply “valueAtTime()” in the rotation expression but I can’t get it to work.
This is the expression that I’ve applied without success. The rotation works until keyframes are applied to animate:
C = comp(“Binny_Front_FULL”);
ctrl = C.layer(“Brazo L”).transform.rotation;
L = C.layer(thisComp.name);
ctrl.valueAtTime(time+L.startTime)
I would appreciate help on this.
Thanks a lot!