disguise developers

Python API

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

PlayHead

Properties

holding : bool (Read-Only)

loopSectionMode : bool (Read-Only)

playJustTriggered : bool (Read-Only)

playMode : PlayMode (Read-Only)

playing : bool (Read-Only)

sectionPlayMode : bool (Read-Only)

stopped : bool (Read-Only)

tCurrent : float (Read-Only)

tRender : float (Read-Only)

tRunForever : float (Read-Only)

tRunning : float (Read-Only)

Methods

getModuleForLayer(self, layer: Layer) -> Module

writeLayerFromTimeline(self, layer: Layer)

Write the layer’s field sequences into its Module at the current tRender.

Called by the GUI when an editor needs the Module to reflect the latest timeline values.
For active layers the render path already does this every frame, so the GUI only needs
to call this for layers excluded from the active set (disabled, parent-disabled).

Parameters: