MakeIntFromStart
Creates new interval variable. For each timestamp tstart of intStartVar,
it looks for the first timestamp tend of the intEndVar after tstart.
If tend is before the next timestamp of intStartVar, it adds the interval [tstart+shift1, tend+shift2] to the result.
Syntax
MakeIntFromStart(intStartVar, intEndVar, shift1, shift2)
Parameters
Parameter |
Type |
Description |
|---|---|---|
intStartVar |
variableReference |
Reference to the variable |
intEndVar |
variableReference |
Reference to the variable |
shift1 |
number |
Shift minimum (seconds). |
shift2 |
number |
Shift maximum (seconds). |
Return
Reference to the new variable.
Examples
Python
import nex
doc = nex.GetActiveDocument()
doc["Int2"] = nex.MakeIntFromStart(doc["FrameStart"], doc["FrameEnd"], - 0.1, 0.1)
NexScript
doc = GetActiveDocument()
doc["Int2"] = MakeIntFromStart(doc["FrameStart"], doc["FrameEnd"], -0.1, 0.1)