-
Reverse Expression
Hi, ihave the following expression assigned to a text layer
selectorValue * textIndex/textTotal
delay = .025;
myDelay = delay*textIndex;
t = (time – inPoint) – myDelay;
if (t >= 0){
freq =2;
amplitude = 100;
decay = 10.0;
s = amplitude*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t);
[s,s]
}else{
value
}This causes each letter to grow one after the other from left to right, it also adds a inertial bounce.
My question is how to I get this to work from right to left instead? I basically need to somehow reverse the selector value order?
Thanks in advance
selectorValue * textIndex/textTotal
delay = .025;
myDelay = delay*textIndex;
t = (time - inPoint) - myDelay;
if (t >= 0){
freq =2;
amplitude = 100;
decay = 10.0;
s = amplitude*Math.cos(freq*t*2*Math.PI)/Math.exp(decay*t);
[s,s]
}else{
value
}