ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

smooth value based on layer speed

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
kosma labadeusz
smooth value based on layer speed
on Mar 6, 2018 at 4:15:09 pm

im wondering if there is a way to smooth out transisions between this expression values. basically im looking for an effect similar to the easy ease feel.
is there a way to make this graph more curvy?

thanks!



Return to posts index

Dan Ebberts
Re: smooth value based on layer speed
on Mar 6, 2018 at 5:13:58 pm

I haven't tested this at all, so there may be typos, but you could try averaging:


cS = thisComp.layer("cursor").transform.position;
total = 0;
for (i = -2, i <=2; i ++){
total += cS.speedAtTime(time + i*thisComp.frameDuration);
}
avg = total/5;
linear(avg,0,1000,100000,5000)



Dan



Return to posts index

kosma labadeusz
Re: smooth value based on layer speed
on Mar 7, 2018 at 9:26:55 am

thanks Dan! ☺

unfortunately this doesnt work for me, because it still generates the 'rough' graph shown before.

is it possible to make this value 'react' slower for changes? ie it doesnt change immidiately to the final result, but breaks it into 3 steps/frames. i tried to write something like "value-value/3", but somehow this gives same result every frame instead of recalculating it.

is there another way to write this 'value-value/3' thing to actually work correctly? :)


Return to posts index


kosma labadeusz
Re: smooth value based on layer speed
on Mar 7, 2018 at 9:57:32 am

in other words i would like the value to increase/decrease for the duration of next 3 frames, not to instantly take the final position.

it's not the destination that matters, it's the road ;)


Return to posts index

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