-
Using loopIn and loopOut in the same expression
Pretty much, what the title says, I’m trying to use one or the other via a conditional statement but I’m getting the following error:
Undefined value used in expression (could be an out of range array subscript?)
This is for time remapping a video, so add some head and tails to it.
Thanks in advance for your help.
n = 0;
if (marker.numKeys > 0){
n = marker.nearestKey(time).index;
if (marker.key(n).time > time) n–;
}
if
(n<=1)
{loopIn(“pingpong”)
}
if
(n>2)
{loopOut(“pingpong”)
}
;