-
Offset Position AND TIME expression
Hello Everyone,
I am trying to create an expression that will help me animate 15 pages of a pdf. I have the keyframe set for page 1.
I want the other pages to fall in but moved over a hair on both x and y and their movement spaced out as well.So I found a thread that KINDA helps, but it only solves 1/2 my problem:
https://forums.creativecow.net/readpost/2/875415And I have a script ALOT like it:
offset = -.5;
p = thisComp.layer(“Page 1/ProtectorPlus.psd”);
t = time + offset;
p.position.valueAtTime(t);So – For TIME this is GREAT works like a charm. For position offset, no so much!
I have some code I made up with my whole 6 hours of expression experience, so only laugh a little at how bad it is. This works for the spacing but not the time:offset = index – 1;
xNum = thisComp.layer(“Page 1/ProtectorPlus.psd”).position[0];
yNum = thisComp.layer(“Page 1/ProtectorPlus.psd”).position[1];
zNum = thisComp.layer(“Page 1/ProtectorPlus.psd”).position[2];
x = xNum – offset+100;
y = yNum – offset+50;
z = zNum;
[x,y,z]How the Heck do I COMBINE the first code and the second?! So my papers space correctly over time?
thanks
JenniferJennifer Arani