Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesCreative Cloud DebateFAQ

Re: time offset between layers

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread


Darby EdelenRe: time offset between layers
by on Jan 22, 2008 at 6:22:15 pm

You can link the properties of one layer to another and then use the valueAtTime(time) function to retrieve the value of the parent property at a given time. If you wanted an offset then you could do something like this:

offset = -.5; //The offset in time, negative half a second.
p = thisComp.layer("My Animated Layer"); //The parent layer
t = time + offset; //The current time minus half a second
p.position.valueAtTime(t); //Value of the parent's position property at the current time minus half a second



You could also use Expression Control effects to specify the offset in time and the layer to use as the parent:

offset = effect("Slider Control")("Slider"); //The offset in time, points to a slider control
p = effect("Layer Control")("Layer"); //The parent layer from a layer control
t = time + offset; //The current time minus half a second
p.position.valueAtTime(t); //Value of the parent's position property at the current time minus half a second


Darby Edelen
Designer
Left Coast Digital
Santa Cruz, CA


Posts IndexRead Thread
Reply   Like  
+1
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]