-
Define Global Scale Range Using Markers
I have many follower layers in a chain that are entering frame along a 3D path, rotating around a 3D layer and then exiting the opposite side of the frame.
Using this expression:
strt = 0; //start time of template motion
end = 25; //end time of template motiont = thisComp.layer(“template”);
offset = (t.effect(“offset”)(“Slider”)/100)*(index -1);
travel = linear(t.effect(“travel”)(“Slider”)/100,strt,end);
t.position.valueAtTime(travel – offset)As they rotate around, I want them to scale slightly, then return to original scale as they pass behind the layer. Since each follower crosses the front of the 3D layer at a different time, key frames would be complicated and referencing in/out points doesn’t correct for timing.I was thinking using 2 markers on a control null would be able to do the following. As each follower moves along in time and encounters the first marker, it would scale as defined in a scale expression, then be back to it’s original scale as it encounters the second marker and continue on it’s path. Being able to move the markers to easily adjust the range for quick adjustments if the timing of the overall animation changes, would be ideal.
I found this expression. Seems that if it could point to the markers instead of in/out points, it would work. I’m just not sure how to do it.
t = time;
tMin = thisLayer.inPoint;
tMax = thisLayer.outPoint;
sclVal = linear(t, tMin, tMax, 0, 50);
[value[0] + sclVal, value[1] + sclVal]Thanks in advance.