Sample Time when true expression?
I'm trying to save some animation time by triggering some animations dynamically. It would be REALLY handy if I could figure out how to trigger a layer to start playing based on the time at which an if/then becomes true, and continue playing until NOT true. Imagine a UI where a video plays as you hover a cursor over it, and then stops when the cursor moves away. Right now, I'm trying to trigger it somehow using an "if" expression, but everything I come up with to try to offset the value either just gives me a constant 0 time, or just the current time because I don't know how to sample time only once at the moment that the "if" statement becomes true. Make sense?
So, ideally something like:
if(transform.scale[0]>20){
time-(something that gets me time value when it STARTED being true)
}else{
0
}I can certainly get the project done by just lining up my layers to start when my cursor interacts with them, or by triggering them with markers, or a dozen other non dynamic things... but it seems like a handy bit of knowledge if someone knows a trick to get the value I'm looking for. Many thanks in advance!
