-
While and Scale
Hi,
I’m animating sweat in a face and I want an angle control to determine the scale of the sweat at the same rate as it appears.
I’m having issues with the while expression to do so:j = 0;
TP= (effect("RATE")("Ángulo"));
scalRel = ease(time, TP-TP, TP, [100,100], [0,0]);while (j < time){
scalRel];This gets me into an infinite loop and I honestly don’t know why.
Can someone help me?
Thank you ????Here is the way I have animated sweat in case someone finds it useful:
HEIGHT = (thisComp.layer("CARA").sourceRectAtTime().height)*0.7;
WIDTH = (thisComp.layer("CARA").sourceRectAtTime().width)*0.7;TP = effect("RATE")("Ángulo");
seed = Math.floor (time/TP);
segStart = seed*TP;seedRandom(seed, true);
X = random (WIDTH/2,((WIDTH/2)*-1));
Y = random (HEIGHT/2,((HEIGHT/2)*-1));
StartVal = [X,Y];EndVal = [X,Y+15];
linear(time, segStart, segStart+TP, StartVal, EndVal);