Had another query,
How can I apply this same animation but instead of using the inpoint of the layer to activate, it moves randomly with layer markers. So if I have 2 or 3 layer markera on the layer, it would move 3 times in either an X or Y position move?
Here is what I got:
sx = 100; // slide distance
sd = .25; // slide duration
seedRandom(index,true);
offset = random() < .5 ? [sx] : [sx];
offset *= random() < .5 ? 1 : -1;
m =marker;
x = 0;
if (m.numKeys > 0){
n = m.nearestKey(time).index;
if (time < m.key(n).time) n--;
if (n > 0){
t = time - m.key(n).time;
x = ease(t,0,sd,(n-1)*offset,n*0);
}
}
value + [x,0]