-
Move marker of a layer depending on its length
Hi,
I would like to move a marker automatically according to the length of the layer it’s on.
For my example, I would like to have the 2nd marker placed 15 frames before the layer end automatically or with just one button (instead of doing in manually), is it possible ? Thank you
For information, my 2 markers are linked to 2 keyframes with this code I found there :
m = thisLayer.marker;
if (m.numKeys > 1 && numKeys > 0){
t = linear(time,m.key(1).time,m.key(2).time,key(1).time,key(numKeys).time);
valueAtTime(t);
}else