the Marker-Based Animation Trigger does not work: Error at line 12: "Illegal return ...."
@avnishparker8 сағат бұрын
Wait. I’ll check the expression.
@avnishparker8 сағат бұрын
Here is the fixed expression. I have also made changes on my website. Thank you for letting me know. :) m = thisComp.marker; if (m.numKeys > 0) { triggerTime = 0; for (i = 1; i = m.key(i).time) { triggerTime = m.key(i).time; // Use the most recent marker } } if (triggerTime > 0) { timeOffset = time - triggerTime; // Calculate the offset based on the most recent marker valueAtTime(timeOffset); // Adjust the property value } else { valueAtTime(0); // Hold the initial state if no markers have been reached } } else { 0; // No animation if no markers exist }
@simontrickfilmer5 сағат бұрын
@@avnishparker thanks! Will chek it out by chance!