-
Parent to Z position only with offset
Hi,
I currently have a load of squares which I want to animate along the z axis with an offset in the animation time for each layer.
I am currently parenting them all to one layer and I can get them all to follow in sequence, but i can’t get them to parent along the z axis only. I want each square to keep its own unique x and y position. The expression I am currently using is below.
Any help in this would be greatly appreciated.
Many thanks.
offset = -.2; //The offset in time, negative 0.2 secs.
p = thisComp.layer("My parent layer"); //The parent layer
t = time + offset * index; //The current time minus offset time multiplied by layers in comp
p.position.valueAtTime(t); //Value of the parent's position property at the current time minus offset time