ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Key frames - move by twos.

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Yaron Bar
Key frames - move by twos.
on Jun 3, 2009 at 8:54:36 am

Hello,
Is there a convenient way of making the transition between 2 keyframes occur not smoothly (frame by frame) but on a 2-frame basis ? (a change every 2 frames).

Thanks,
Y.


Return to posts index

Roland R. Kahlenberg
Re: Key frames - move by twos.
on Jun 3, 2009 at 10:23:10 am

Select your keyframes and open up the Wiggle Animation Assistant. Set the Frequency to one half of your comp's framerate and set magnitude to 0.000000001. Then click Apply. Then select all the keyframes and right-click on any keyframe and select Toggle Hold Keyframe.

HTH
RoRK






broadcastGEMs - AEPro Volume 02 (Professional Adobe After Effects Project Files - Now Available).

Adobe After Effects Training in South East Asia.


Return to posts index

Darby Edelen
Re: Key frames - move by twos.
on Jun 3, 2009 at 9:59:08 pm

Apply this expression if you're working with position keyframes:


n = 2;
posterizeTime(1/n/thisComp.frameDuration);
transform.position


If you want this stuttered motion to occur only between two keyframes it might get a little more complicated:


n = 2;
k1 = key(1).time;
k2 = key(2).time;
if((time<=k2)&&(time>=k1)) posterizeTime(1/n/thisComp.frameDuration);
transform.position;


This would only apply the stuttering motion between the first and second keyframes as defined by the number in the key(x) parentheses.

When using the posterizeTime() function you can't use the 'value' parameter to return the posterized value, so you'll have to pickwhip the property to itself to generate the last line (i.e. "transform.position").

Darby Edelen


Return to posts index

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