Switcher hardware control
Labels
- class pyatem.command.InputPropertiesCommand(source_index, label=None, short_label=None, port_type=None)
Implementation of the CInL command. This sets labels and routing for video inputs
Offset
Size
Type
Description
0
1
u8
Mask
1
1
?
unknown
2
2
u16
Source index
4
20
str[]
Label
24
4
str[]
Short label
28
2
u16
Port type
- __init__(source_index, label=None, short_label=None, port_type=None)
- Parameters:
source_index – Input index to change the properties for
label – Long display label for the input
short_label – Short display label for the button of the input, 4 letter code
port_type – Port type enum
Multiviewer routing
- class pyatem.command.MultiviewPropertiesCommand(index, layout=None, swap=None)
Implementation of the CMvP command. This sets the layout of a multiview output and can set a flag for swapping the program and preview window.
Offset
Size
Type
Description
0
1
u8
Mask, see table below
1
1
u8
Multiviewer index
2
1
u8
Layout
3
1
bool
Swap program/preview
See the MultiviewPropertiesField for the description of the layout value.
- __init__(index, layout=None, swap=None)
- Parameters:
index – 0-indexed multiview output number
layout – The layout number to use, or None
swap – Make the program/preview swapped or not, or None
- class pyatem.command.MultiviewInputCommand(index, window, source)
Implementation of the CMvI command. This routes a source to one of the windows in a multiview output
Offset
Size
Type
Description
0
1
u8
Multiviewer index
1
1
u8
Window index
2
2
u16
Source index
- __init__(index, window, source)
- Parameters:
index – 0-indexed multiview output number
window – The window number on the multiview
source – The source index index to route to the window