-
trails with position variables
I have a white ellipse that enters screen left and exits screen right (basic animation here:https://www.youtube.com/watch?v=jUIgcULk9n8)
I’ve plugged this script into the position expression:
strt = 0; //start time of template motion
end = 4.0; //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)I got this script from:https://www.motionscript.com/mastering-expressions/follow-the-leader.html
under “Follow the Null”this script is working well, but I want to add follow the nulls z rotation and also make a “spread” slider so that I can spread my white ellipses so that they aren’t all in one train line.
sorry if this is a FAQ but I can’t find my exact situation and I’m not good with expressions to design or modify!
strt = 0; //start time of template motion
end = 4.0; //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)