-
Scale Up the Down at Markers
Hi everyone,
I have been trying to get my layer to scale up at the first marker and then back down at the second. I have tried to copy and paste and hack at a whole heap of scripts that i have found here but alas my scripting skills are shocking.
I would like a nice ease up and down. The script below just goes straight to the maxVal at the first marker but scales down nicely at the second. I have tried heaps of different techniques and I feel I am close but I just can’t seem to close the deal.
Any help would be much appreciated.
Regards
Justin
n = 0;
numFrames = 5;
t1 = marker.key(2).time;
t2 = t1 + numFrames*thisComp.frameDuration;
minVal = [85,85];
maxVal = [100,100];
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
n--;
}
}if (n == 0){
ease(time,t2,t1,minVal,maxVal)
} else {
ease(time,t2,t1,maxVal,minVal)
}