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[int] = 12

16-bit Amber channel

Amber8 : Final[int] = 4

8-bit Amber channel

Blue16 : Final[int] = 10

16-bit Blue channel

Blue8 : Final[int] = 2

8-bit Blue channel

Cyan16 : Final[int] = 13

16-bit Cyan channel

Cyan8 : Final[int] = 5

8-bit Cyan channel

Green16 : Final[int] = 9

16-bit Green channel

Green8 : Final[int] = 1

8-bit Green channel

Magenta16 : Final[int] = 14

16-bit Magenta channel

Magenta8 : Final[int] = 6

8-bit Magenta channel

MonoMax16 : Final[int] = 19

16-bit Mono (max) channel

MonoMax8 : Final[int] = 17

8-bit Mono (max) channel

MonoWeighted16 : Final[int] = 18

16-bit Mono-weighted Sum channel

MonoWeighted8 : Final[int] = 16

8-bit Mono-weighted Sum channel

Padding : Final[int] = 20

8-bit empty Padding channel

Red16 : Final[int] = 8

16-bit Red channel

Red8 : Final[int] = 0

8-bit Red channel

White16 : Final[int] = 11

16-bit White channel

White8 : Final[int] = 3

8-bit White channel

Yellow16 : Final[int] = 15

16-bit Yellow channel

Yellow8 : Final[int] = 7

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).