disguise developers

Python API

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

NmosNodeList

A hierarchical list showing NMOS Nodes, the devices in each node, and the senders and receivers in each device

Variables

ITEMTYPE_DEVICE : Final[int] = 1

NMOS list item type - this item is a device

ITEMTYPE_NODE : Final[int] = 0

NMOS list item type - this item is a node

ITEMTYPE_RECEIVER : Final[int] = 3

NMOS list item type - this item is a receiver

ITEMTYPE_SENDER : Final[int] = 2

NMOS list item type - this item is sender

LOAD_ALL : Final[int] = 15

Include NMOS nodes, devices, senders and receivers in the node list

LOAD_DEVICE : Final[int] = 2

Include NMOS devices in the list

LOAD_NODE : Final[int] = 1

Include NMOS nodes in the list

LOAD_RECEIVER : Final[int] = 8

Include NMOS receivers in the node list

LOAD_SENDER : Final[int] = 4

Include NMOS senders in the list

LOAD_VIDEO_ONLY : Final[int] = 16

Only include NMOS senders and receivers of ST2110 video in the list

Methods

applyFilter(self, filter: str) -> bool

Filters the list to show only items matching the filter string
Parameters:

buildList(self, loadOptions: int) -> bool

Builds the list from the NMOS registry
Parameters:

clear(self)

Clears all items from the list

handleSelectedItem(self, mlvItem: MultiLevelListItem)

Handles selection of an item in the list
Parameters:

listItems(self) -> List[MultiLevelListItem]

returns all items currently in the list
Returns the array of list items