Shift

Shifts all the timestamps of a variable.

Syntax

Shift(var, shiftBy)

Parameters

Parameter

Type

Description

var

variableReference

Reference to the variable

shiftBy

number

Shift value (in seconds)

Return

Reference to the new variable.

Note

Returns a new variable with all the timestamps of variable var shifted in time by shiftBy seconds.

Examples

Python

import nex
doc = nex.GetActiveDocument()
doc["Event04Shifted"] = nex.Shift(doc["Event04"], 10)

NexScript

doc = GetActiveDocument()
doc["Event04Shifted"] = Shift(doc["Event04"], 10)