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: Value in relation to keyframes

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


Dan EbbertsRe: Value in relation to keyframes
by on Sep 7, 2011 at 3:18:45 pm

This should fade from 0 to 100 at the first position keyframe and 100 to 0 coming into the last keyframe. It won't do anything unless there are at least two keyframes:


p = transform.position;
fadeFrames = 10;

if (p.numKeys > 1){
t0 = p.key(1).time;
t1 = p.key(p.numKeys).time;
t = framesToTime(fadeFrames);
if (time < (t0+t1)/2){
ease(time,t0,t0+t,0,100)
}else{
ease(time,t1-t,t1,100,0)
}
}else{
value
}



Dan



Posts IndexRead Thread
Reply   Like  
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]