-
Move Layer via Layer Markers
Hello!
Maybe someone can help me with this here.
I have an Expression, which moves the Layer an x-amount of pixels for every layer marker on the layer.But now i want to also add comments to the layer markers.
So for example a layer marker is called “20 pixel up for -x”.
I want to implement that the expression has a differend slider distance, duration and direction for different comments on these layer markers.
Is that possible ?Thanks a lot :)!!
sx = 50; // slide distance
sd = 10; // slide durationm = thisLayer.marker;
y = 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;
y = easeOut(t,0,sd,(n-1)*sx,n*sx);
}
}
value + [0,-y]