disguise developers

Python API

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

DmxFixtureType

Allows users to define their own custom per-pixel DMX channel layouts in DMX Screens

Properties

attributes : List[int]

Ordered list of channel attributes which define the DMX layout

UserName: Channels

biLevelMono : bool

Output binary levels only (0 or 255/65535) for mono max channels.

UserName: Bi-Level Mono

dmxChannelsPerPixel : int (Read-Only)

Total number of DMX channels per pixel (sum of all attribute footprints)

the total DMX channel count per pixel

invertMono : bool

Invert the mono max output (255/65535 - value).

UserName: Invert Mono

subtractWhite : bool

Subtract white value from colour channels if a white channel is present.

UserName: Subtract White

Variables

Amber16 : Final[DmxChannelAttribute] = DmxChannelAttribute.Amber16

16-bit Amber channel

Amber8 : Final[DmxChannelAttribute] = DmxChannelAttribute.Amber8

8-bit Amber channel

Blue16 : Final[DmxChannelAttribute] = DmxChannelAttribute.Blue16

16-bit Blue channel

Blue8 : Final[DmxChannelAttribute] = DmxChannelAttribute.Blue8

8-bit Blue channel

Cyan16 : Final[DmxChannelAttribute] = DmxChannelAttribute.Cyan16

16-bit Cyan channel

Cyan8 : Final[DmxChannelAttribute] = DmxChannelAttribute.Cyan8

8-bit Cyan channel

Green16 : Final[DmxChannelAttribute] = DmxChannelAttribute.Green16

16-bit Green channel

Green8 : Final[DmxChannelAttribute] = DmxChannelAttribute.Green8

8-bit Green channel

Magenta16 : Final[DmxChannelAttribute] = DmxChannelAttribute.Magenta16

16-bit Magenta channel

Magenta8 : Final[DmxChannelAttribute] = DmxChannelAttribute.Magenta8

8-bit Magenta channel

MonoMax16 : Final[DmxChannelAttribute] = DmxChannelAttribute.MonoMax16

16-bit Mono (max) channel

MonoMax8 : Final[DmxChannelAttribute] = DmxChannelAttribute.MonoMax8

8-bit Mono (max) channel

MonoWeighted16 : Final[DmxChannelAttribute] = DmxChannelAttribute.MonoWeighted16

16-bit Mono-weighted Sum channel

MonoWeighted8 : Final[DmxChannelAttribute] = DmxChannelAttribute.MonoWeighted8

8-bit Mono-weighted Sum channel

Padding : Final[DmxChannelAttribute] = DmxChannelAttribute.Padding

8-bit empty Padding channel

Red16 : Final[DmxChannelAttribute] = DmxChannelAttribute.Red16

16-bit Red channel

Red8 : Final[DmxChannelAttribute] = DmxChannelAttribute.Red8

8-bit Red channel

White16 : Final[DmxChannelAttribute] = DmxChannelAttribute.White16

16-bit White channel

White8 : Final[DmxChannelAttribute] = DmxChannelAttribute.White8

8-bit White channel

Yellow16 : Final[DmxChannelAttribute] = DmxChannelAttribute.Yellow16

16-bit Yellow channel

Yellow8 : Final[DmxChannelAttribute] = DmxChannelAttribute.Yellow8

8-bit Yellow channel

Methods

hasAny16BitChannels(self) -> bool

Whether any 16-bit attributes are present

If we’re all 8 bit then we can work with 8 bit colour for better performance.

Returns true if any attribute is a 16-bit type

numAttributes(self) -> int

Return the number of attributes this fixture type contains

Static Methods

dmxFootprint(attr: DmxChannelAttribute) -> int

Returns the number of DMX channels this attribute occupies(1 for 8-bit / padding, 2 for 16-bit).