Need help with with code for expression animation
Hey there so basically I want to create an expression creating a position delay referencing the layer above using valueattime. then i want the trailing objects animation to be half that of the leading object so they arrive at the same point at the same time. I've tried a bunch of methods but I cant seem to get it to work. any advice? heres my current expression just for the delay which works fine. just need to know how to cut the animation in half after the delay. so leading animation is 12 frames, after 6 frames i want the second object to start and its animation only be 6 frames long.
framedelay = 6
frame = thisComp.frameDuration;
thisComp.layer(index-1).transform.position.valueAtTime(time-frame*framedelay)+[0,500]
