ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

child layer position value at time

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Morris Watts-Zagha
child layer position value at time
on Feb 10, 2020 at 11:47:58 pm

Hi. I have a series of lights that are emitters for Particular. The lights are parented to a 3D null that moves and rotates through space. I’m trying to have the lights move along a similar path as the parent but at a delayed time. I am able to get the world position value of each light, but I can’t figure out how to add the ValueAtTime expression to delay the position.
Thanks in advance!



Return to posts index

Alex Printz
Re: child layer position value at time
on Feb 11, 2020 at 4:10:26 pm

toWorld has a 2nd parameter for time that isn't used as often; if you don't add anything it defaults to time.

Look below for a 1 frame delay:

L = thisComp.layer("targetLayer");
L.toWorld(L.anchorPoint, time-framesToTime(1));


Alex Printz
Mograph Designer


Return to posts index

Morris Zagha
Re: child layer position value at time
on Feb 11, 2020 at 5:35:36 pm

That is exactly what I needed. Thanks!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]