IntOpposite

Creates a new interval variable that contains intervals ‘complementary’ to the intervals of the specified interval variable.

Syntax

IntOpposite(doc, intervalVariable)

Parameters

Parameter

Type

Description

doc

documentReference

Reference to the document

intervalVariable

variableReference

Reference to the interval variable

Return

Reference to the new interval variable.

Note

Creates a new interval variable that contains intervals ‘complementary’ to the intervals of intervalVariable.

For example, if you have an interval variable that contains time intervals with artifacts, IntOpposite will create a new interval variable with ‘clean’ time intervals.

Examples

Python

import nex
doc = nex.GetActiveDocument()
doc["CleanDataIntervals"] = nex.IntOpposite(doc, doc["Artifacts"])

NexScript

doc = GetActiveDocument()
doc["CleanDataIntervals"] = IntOpposite(doc, doc["Artifacts"])