ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Is there a better way?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Griffin Englander
Is there a better way?
on Oct 10, 2019 at 7:12:32 am

Evening peoples,

Out of boredom, I've been exploring a way to change the length of an animation (likely for mograph templates) while maintaining my graph curves.

I've got the below working, I'm just curious if anyone has a better way, or if I'm missing something obvious.

Basically for the sake of the example, the animation takes 1 second to complete, and I'd change a slider value for the time I want said animation to take . (ie 1 for 1 second, 2 for seconds etc).

So on my animated properties I have this;

v = effect("seconds")("Slider");

And with the slider being what I would change in Pr, I have this;

v = value;

So yeah, it works. I'm just curious what the actually intelligent minds come up with.

Return to posts index

Alex Printz
Re: Is there a better way?
on Oct 10, 2019 at 2:03:18 pm

I frequently do something like this:

That way I can keyframe all of the points I want, and later just animate a slider from 0-100 to scrub through all of the keyed states.

s = effect("Slider 1")(1);
valueAtTime(linear( s, 0, 100, key(1).time , key(numKeys).time ) );

Alex Printz
Mograph Designer

Return to posts index

Griffin Englander
Re: Is there a better way?
on Oct 10, 2019 at 11:45:01 pm
Last Edited By Griffin Englander on Oct 10, 2019 at 11:48:21 pm

Thanks mate, nice solution!

That's kinda where I started, I was just trying to avoid having to animate the slider in-case it goes into Premiere.

NumKeys is definitely cleaner though, thankyou!

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved