-
Popping scale
I’m sure this is one of those cases where there is a simple answer I’m missing…
I’ve been trying to come up with an expression that will accomplish the following pseudocode:
start = layer’s in point;
end = 15 frames later;
duration = end – start;
while time < (70% of duration) linear(time, inPoint, inPoint+70%ofduration, 0, value*1.15); then while time >= (the remaining 30% of duration) linear(time, inPoint+70% of duration, inPoint+duration, value*1.15, value);What I’m hoping will result is a smooth arc from 0 scale, to 115% of value, to value. Here’s where I am at this point:
start = this.inPoint;
dur = 30;
end = this.inPoint + framesToTime(dur);
segTotal = end - start;
seg1 = segTotal*.8;
seg2 = segTotal*.2;
mult = 1.15;linear(Math.sin(time), this.inPoint, this.inPoint+seg1, value*0, value*mult);
else { value*mult; linear(time, this.inPoint+seg1, this.inPoint+segTotal, value*mult, value); }
This code probably has some more blatant errors, given that I’ve been trying a bunch of different things, but you can see where I’m going with it. The problem now is it scales up just fine, but back down to value is another story…