disguise developers

Python API

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

Look

A Look is a self-contained, single section Track, containing one or more sequenced Layers. It serves as a template to be referenced other Tracks using Look Layers.
Playing through a Look Layer plays the Layers sequenced in the Look. Optionally, specific Layer parameters can be exposed through the Look’s Personality,
and sequenced on the Look Layer.

Properties

personality : SockpuppetPersonality

Sockpuppet personality for fields exposed on Look layers

UserName: Personality

Methods

doReturn(self)

Jump back on Track to the point stored in goFrom method

goFrom(self, returnLayer: Layer, tFrom: float, tTo: float)

Jump to Look from a specific on a Track. Jump is possible only from LookLayer.

returnLayer(self) -> Layer

Reference to a LookLayer, that was the source of the previous jump to Look.

Static Methods

lookFromEditTrack(maybeEditTrack: Track) -> Look

Derives a reference to a Look from an edit Track reference.
A Track is considered an edit Track if it is stored in the internal/track/look/ folder.

Parameters:

Returns The edit track, or None if the provided Track does not qualify as an edit track.

make(name: str, track: Track, layers: List[Any])

Converts set of given Layers into a new Look and replace them with LookLayer on the given Track.

Parameters:

FIXME: Use `Array<RP> once reflection system allows bidirectional arrays.

unsupportedLayersForLookConversion(supportedLayers: List[Any]) -> List[str]

Filters out layers that cannot be converted into a Look

Parameters:

  • layers Array of Layers to convert into Look

Returns list of layer names that are not supported