disguise developers

Python API

Execute Python code in Designer sessions to control and query projects programmatically.

Timecode

Properties

t : float (Read-Only)

Variables

SMPTE23976 : Final[SMPTEClockType] = SMPTEClockType.SMPTE23976

SMPTE24 : Final[SMPTEClockType] = SMPTEClockType.SMPTE24

SMPTE25 : Final[SMPTEClockType] = SMPTEClockType.SMPTE25

SMPTE2997 : Final[SMPTEClockType] = SMPTEClockType.SMPTE2997

SMPTE2997DF : Final[SMPTEClockType] = SMPTEClockType.SMPTE2997DF

SMPTE30 : Final[SMPTEClockType] = SMPTEClockType.SMPTE30

Constructors

__init__(self)

__init__(self, other: Timecode)

Copy constructor for Timecode

__init__(self, t_: float, clockType_: SMPTEClockType, customFps: optional[float])

__init__(self, t_: float, clockType_: SMPTEClockType)

Methods

asString(self, highResolution: bool) -> str

fps(self) -> float

The rate the frame field counts at, which is the clock type’s.

Static Methods

clockTypeToUiString(clockType: SMPTEClockType, customFps: optional[float] | std_nullopt | float) -> str

fromString(str: str, clock: SMPTEClockType) -> Timecode

fromStringWithFps(str: str, clock: SMPTEClockType, customFps: optional[float] | std_nullopt | float) -> Timecode

Special Methods

__eq__(self, other: Timecode) -> bool

__ne__(self, other: Timecode) -> bool

__repr__(self) -> str

__str__(self) -> str