ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Text Characters Rotation Randomness

COW Forums : Color Grading

VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Eduard Radu
Re: Text Characters Rotation Randomness
on Apr 27, 2020 at 10:22:23 pm

Hi Dan,

I have this expression applied to the Amount of a Text Animator, Expression Selector. I want the animation to return to its original start position when the Current Time Indicator gets to the end of the layer.

minVal = -10;
maxVal = 10;
minDur = .5;
maxDur = 1;

seedRandom(textIndex,true);
prev = next = inPoint;
prevVal = nextVal = 0;
while (time >= next){
prev = next;
prevVal = nextVal;
next += random(minDur,maxDur);
nextVal = random(minVal,maxVal);
}
ease(time,prev,next,prevVal,nextVal);

Eduard


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]