-
Need assistance with follow expression
Hi folks,
I am animating a centipede to move along a path. The centipede consists of a head precomp, 8 body segments, and a tail.
I have animated the head along a path. To get the body segments to follow the head segment, I used the expression below (copied from an old post on this forum) on the position property of each body segment. This worked beautifully.
For the next step, I need this centipede to stop moving and then start again. Right now when the head stops, all the body segments converge on the same position as the head. Is there any way to freeze that expression so the segments stay in position? I know I could time remap the entire composition to freeze it, but then motion blur becomes a problem.
I tried containing this expression inside a stop time expression, but each segment just reverted to it’s original position, and then all the segments did because of the index-1 code. Is there a way to use the ELSE command to tell the body segments to maintain distance when the head stops moving?
I need to figure out a solution by today, so any ideas are appreciated. Thanks!
thisComp.layer(index-1).position.value_at_time(time-thisComp.layer("centipede conrol").effect("Slider Control")("Slider"))Motion Graphics Designer
Warm Springs Productions
Missoula, Montana