Copy link to clipboard
Copied
See photo: I have one comp inside another, and I've pick whipped the scale value from a layer in the outer comp. But, even though the source scale is animated, the scale of the child doesn't change. The child scale value is fixed at the value of the source's first keyframe.
I've closed and re-opened AE. Everything else seems to be working fine. What am I doing wrong?
Thanks!
See if this helps:
c = comp("Endo Opening Main");
c.layer("Hero Pill Orange Fill").transform.scale.valueAtTime(time + c.layer(thisComp.name).startTime)
Copy link to clipboard
Copied
(Sorry about the 3 screenshots. They're all the same.)
Copy link to clipboard
Copied
See if this helps:
c = comp("Endo Opening Main");
c.layer("Hero Pill Orange Fill").transform.scale.valueAtTime(time + c.layer(thisComp.name).startTime)
Copy link to clipboard
Copied
That worked! Can you give me a sense of what was wrong with the way I did it? Shouldn't it have worked?
Copy link to clipboard
Copied
If an expression in a nested comp references items in the outer comp AND the the nested comp layer doesn't start at time = 0 in the outer comp, you have to compensate for the offset start time if you want to sync up the animation.
Copy link to clipboard
Copied
Amazing! Thanks for your help!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now