Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE AFTER EFFECTS: ForumAE BasicsAE ExpressionsTutorialsArticlesPodcastsMotion GraphicsTrainingCinema 4D

Get time from keyframe-position

Cow Forums : Adobe After Effects Expressions
cow
Get time from keyframe-position
by Mats Jacobsson on May 30, 2008 at 11:26:59 am

I'm new in scripting, and I have a problem...

- I have a null with a angle control keyframed 180 to 0 over time.
- I have a "Layer 1" where y-rotation is linked to the angle control.

When I duplicate the "layer 1" i want the rotation to be delayed in time the amount of time where the last keyframe on the slider is. So when I move the last keyframe the delay of "Layer 1" follows.

Someone who knows?

Thanks!

Respond to this post   •   Return to posts index

cowcowcow
Re: Get time from keyframe-position
by Dan Ebberts on May 30, 2008 at 1:11:26 pm

Like this:

prop = thisComp.layer("Null 1").effect("Angle Control")("Angle");
n = prop.numKeys;
prop.valueAtTime(time - prop.key(n).time)


Dan



Respond to this post   •   Return to posts index

cow
Re: Get time from keyframe-position
by Mats Jacobsson on May 30, 2008 at 5:23:27 pm

Thanks a lot! It worked just the way I wanted!

/Mats

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]