-
Markers that trigger an animation on….but, can they go off?
Hi all,
First time poster – I’ve looked through previous posts but can’t find the answer to this one…
I recently used Ukramedia’s EXCELLENT expression linking movement to Nulls in x,y and Markers in time. Here’s the video (with thanks!!) https://www.youtube.com/watch?v=RBi3KEEX04g
It works perfectly to animate on – but I’m struggling to get it to then animate off later down the timeline… I’ve included the script.
Marker One “Start Animation On” and Marker Two “Stop Animation On” are 20 frames apart at the 1min mark.
I need – Marker Three “Start Animation Off” and Marker Four “Stop Animation Off” to be set up about the 2min mark to animate off.I’m sorry but I’m very new to expressions – I’ve been trying to work out the code myself but nothing has worked over.
I was hoping that someone here could help me out.
Thanks in advance – this is a great forum with very generous contributors!!
startMarker = comp("My Comp Name").marker.key(1).time;
endMarker = comp("My Comp Name").marker.key(2).time;xInPosition = comp("My Comp Name").layer("My Layer").transform.position[0];
yInPosition = comp("My Comp Name").layer("My Layer").transform.position[1];
xOutPosition = comp("My Comp Name").layer("My Layer").transform.position[0];
yOutPosition = comp("My Comp Name").layer("My Layer").transform.position[1];x = ease(time, startMarker, endMarker, xInPosition, xOutPosition);
y = ease(time, startMarker, endMarker, yInPosition, yOutPosition);
[x,y]Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.