disguise developers

Python API

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

MachineType

Variables

Designer = 0

Designer running on hardware that is not a disguise server

V2_5 = 1

Pro_4x2 = 2

Pro_4x4 = 3

Plus_2x2 = 4

Pro_4x4_NoVfcs = 5

Node = 6

Pro_2x4 = 7

Gx_1 = 8

Gx_2 = 9

Solo_v1 = 10

Vx_4 = 11

Gx_2c = 12

Rx = 13

Rx_II = 14

Vx_1 = 15

Vx_2 = 16

Vx_4Plus = 17

Gx_3 = 18

Vx_4n = 19

Ex_3 = 20

Vx_2Plus = 21

Vx_3 = 22

CustomRenderNode = 23

Rx_III = 24

Ex_2 = 25

Ex_2c = 26

Ex_3Plus = 27

Gx_3Plus = 28

Constructors

__init__(self)

Default constructor for MachineType

__init__(self, other: MachineType)

Copy constructor for MachineType

Methods

toString(self) -> str

The name of this enumerator, or an empty string if its value is not a named enumerator

Static Methods

fromInt(arg0: int) -> MachineType

The enumerator with the given integer value, which need not be one of the named enumerators

Special Methods

__index__(self) -> int

The integer value of this enumerator, for use as a list index

__int__(self) -> int

The integer value of this enumerator

__repr__(self) -> str

The enum and enumerator names, as ; str() and print give the same

__lt__(self, other: Self | int) -> bool

Orders by integer value; ordering against a different enum raises TypeError

__le__(self, other: Self | int) -> bool

Orders by integer value; ordering against a different enum raises TypeError

__gt__(self, other: Self | int) -> bool

Orders by integer value; ordering against a different enum raises TypeError

__ge__(self, other: Self | int) -> bool

Orders by integer value; ordering against a different enum raises TypeError