-
Triggering animation with markers without comments
Hi there,
So, is there any way around that i can trigger them without comments?
Thanks for the help!
action = comp(thisLayer.source.name).layer('Markers');
n = 0;
if (marker.numKeys > 0)
{n = marker.nearestKey(time).index;
if (marker.key(n).time > time)
{n--;}}if (n == 0)
0
else{
mostRecent = marker.key(n);
layerMarkerName = mostRecent.comment;
tDif = time - mostRecent.time;
try{
actionMarker = action.marker.key(layerMarkerName);
if (action.marker.numKeys > actionMarker.index){
offset= timeToFrames(action.marker.key(actionMarker.index + 1).time)-1;
tDifMax = framesToTime(offset) - actionMarker.time;}
else{
tDifMax = action.outPoint - actionMarker.time;}tDif = Math.min(tDif, tDifMax);
actionMarker.time + tDif;}
catch (err) {
0
}
}