ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Variable increase expression over time

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Steven Summers
Variable increase expression over time
on Jul 4, 2017 at 5:46:07 pm

I'm looking for an expression that will add some variation to a rate increase. So I have a control I want to increase from 0 to 100 over a set time, but I want the rate that these numbers increase to be varied.

I've looked at various sites, but can't seem to find the answer to this.

I'm trying to mimic the slow then fast then slow motion of something cracking.
Thanks!


Return to posts index

Scott McGee
Re: Variable increase expression over time
on Jul 4, 2017 at 9:20:55 pm

this should work.

valuea = 0;
valueb = 15;
valuec = 25;
valued = 100;

inPointa = 0;
inPointb = 4;
inPointc = 8;

if (time < inPointa + 2){
ease(time,inPointa,inPointa +2, valuea, valueb)
} else if (time < inPointb + 2){
ease(time,inPointb,inPointb +2, valueb, valuec)
} else if (time < inPointc +2){
ease(time,inPointc,inPointc + 2, valuec, valued)}

There's probably an easier way, but this is what I would use currently until I could figure an easier way.


Return to posts index

Steven Summers
Re: Variable increase expression over time
on Jul 5, 2017 at 5:17:50 pm

Thanks! Greatly appriciated!


Return to posts index

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