-
Maximum trail length?
Hello,
I am trying to make an object trail another object (a “follower” and a “leader”). However, I would like the “follower” object to never go beyond a certain pixel range (50 pixels lets say), no matter how fast the “leader” is moving. So essentially an ‘upper limit’ to a trail length…
I wish I could give some sample code, but I simply don’t know where to begin after copying the ‘creating trails’ code (ebberts).
delay = 5; //number of frames to delay
d = delay*thisComp.frameDuration*(index - 1);
thisComp.layer(1).position.valueAtTime(time - d)