-
Layer Label and Comp Marker relationship problem
I want to use comp marker numbers to activate events on layers labeled with numbers, but am having trouble translation 1 into “1” and then back to 1
I’ve pasted the code that doesnt work, and I understand why it doesnt work (it’s reading the comment as a string when the expression needs a number) but I’m kind of lost as to how to translate.
so in basic terms, i want the layer labeled with “1” to only be active between comp marker 1 and 2
LABEL = thisLayer.marker.key(1).comment;
START = thisComp.marker.key(LABEL).time;
END = thisComp.marker.key(LABEL+1).time;
ease(time, START, END, 0, 100)