Cues
ActionCue
Bases: Cue
A cue that represents an action to be performed on a target object.
This cue is used to trigger actions on other objects in the system, such as playing, pausing, or stopping media cues.
Source code in src/cuemsutils/cues/ActionCue.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
__init__(init_dict=None)
Initialize an ActionCue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If not provided, default values from REQ_ITEMS will be used. |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If init_dict explicitly sets action_target to None. |
Source code in src/cuemsutils/cues/ActionCue.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | |
get_action_target()
Get the target object for the action.
Returns:
| Type | Description |
|---|---|
|
The target object identifier. |
Source code in src/cuemsutils/cues/ActionCue.py
37 38 39 40 41 42 43 | |
get_action_type()
Get the type of action to perform.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The action type (e.g., 'play', 'pause', 'stop'). |
Source code in src/cuemsutils/cues/ActionCue.py
60 61 62 63 64 65 66 | |
items()
Get all items in the cue as a dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict_items |
A view of the cue's items, with required items sorted first. |
Source code in src/cuemsutils/cues/ActionCue.py
78 79 80 81 82 83 84 85 86 87 | |
set_action_target(action_target)
Set the target object for the action.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
action_target
|
str
|
The target object identifier. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If action_target is None after initialisation is complete. |
Source code in src/cuemsutils/cues/ActionCue.py
45 46 47 48 49 50 51 52 53 54 55 56 | |
set_action_type(action_type)
Set the type of action to perform.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
action_type
|
str
|
The action type (e.g., 'play', 'pause', 'stop'). |
required |
Source code in src/cuemsutils/cues/ActionCue.py
68 69 70 71 72 73 74 | |
AudioCue
Bases: MediaCue
A cue for handling audio playback and control.
This class extends MediaCue to provide specific functionality for audio playback, including volume control and OSC communication for audio routing.
Source code in src/cuemsutils/cues/AudioCue.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | |
__init__(init_dict=None)
Initialize an AudioCue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If provided, will be used to set initial properties. |
None
|
Source code in src/cuemsutils/cues/AudioCue.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | |
audio_media_loop(ossia, mtc)
Handle the audio media playback loop.
This method manages the playback loop for audio media, including handling looping behavior and OSC communication for timing control.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ossia
|
The OSC communication interface. |
required | |
mtc
|
The MIDI Time Code interface. |
required |
Source code in src/cuemsutils/cues/AudioCue.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | |
check_mappings(settings)
Check if the audio output mappings are valid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
The settings containing project node mappings. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
True if the mappings are valid, False otherwise. |
Source code in src/cuemsutils/cues/AudioCue.py
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | |
get_master_vol()
Get the master volume level.
Returns:
| Name | Type | Description |
|---|---|---|
float |
The master volume level. |
Source code in src/cuemsutils/cues/AudioCue.py
35 36 37 38 39 40 41 | |
items()
Get all items in the cue as a dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict_items |
A view of the cue's items, with required items sorted first. |
Source code in src/cuemsutils/cues/AudioCue.py
53 54 55 56 57 58 59 60 61 62 | |
osc_route(osc_route)
Set the OSC route for audio control.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
osc_route
|
str
|
The OSC route to use for audio control. |
required |
Source code in src/cuemsutils/cues/AudioCue.py
72 73 74 75 76 77 78 | |
player(player)
Set the audio player instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
player
|
The audio player instance to use. |
required |
Source code in src/cuemsutils/cues/AudioCue.py
64 65 66 67 68 69 70 | |
set_master_vol(master_vol)
Set the master volume level.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
master_vol
|
float
|
The new master volume level. |
required |
Source code in src/cuemsutils/cues/AudioCue.py
43 44 45 46 47 48 49 | |
stop()
Stop the audio playback.
This method stops the audio player and sets the stop request flag.
Source code in src/cuemsutils/cues/AudioCue.py
131 132 133 134 135 136 137 138 | |
Cue
Bases: CuemsDict
Base class for all cue types in the system.
A cue represents a single action or event that can be triggered in the system. It contains properties like timing, target, and behavior settings.
Source code in src/cuemsutils/cues/Cue.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 | |
__eq__(other)
Compare two cues by their id.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
other
|
The other cue to compare with. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
True if the cues have the same id, False otherwise. |
Source code in src/cuemsutils/cues/Cue.py
292 293 294 295 296 297 298 299 300 301 302 303 | |
__hash__()
Hash the cue by its id.
Returns:
| Name | Type | Description |
|---|---|---|
int |
The hash value of the cue's id. |
Source code in src/cuemsutils/cues/Cue.py
305 306 307 308 309 310 311 | |
__init__(init_dict=None)
Initialize a new Cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If provided, will be used to set initial properties. |
None
|
Source code in src/cuemsutils/cues/Cue.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
__json__()
Convert the cue to a JSON-compatible dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
A dictionary representation of the cue. |
Source code in src/cuemsutils/cues/Cue.py
313 314 315 316 317 318 319 | |
check_mappings(settings)
Check if the given settings are valid for this cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
The settings to check. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
True if the settings are valid, False otherwise. |
Source code in src/cuemsutils/cues/Cue.py
369 370 371 372 373 374 375 376 377 378 379 | |
get_autoload()
Get whether the cue should be autoloaded.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
True if the cue should be autoloaded, False otherwise. |
Source code in src/cuemsutils/cues/Cue.py
124 125 126 127 128 129 130 | |
get_description()
Get the description of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The cue's description. |
Source code in src/cuemsutils/cues/Cue.py
88 89 90 91 92 93 94 | |
get_enabled()
Get whether the cue is enabled.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
True if the cue is enabled, False otherwise. |
Source code in src/cuemsutils/cues/Cue.py
106 107 108 109 110 111 112 | |
get_id()
Get the unique identifier of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
Uuid |
The cue's unique identifier. |
Source code in src/cuemsutils/cues/Cue.py
51 52 53 54 55 56 57 | |
get_loop()
Get the loop count of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
int |
The number of times the cue should loop. |
Source code in src/cuemsutils/cues/Cue.py
179 180 181 182 183 184 185 | |
get_name()
Get the name of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The cue's name. |
Source code in src/cuemsutils/cues/Cue.py
70 71 72 73 74 75 76 | |
get_next_cue()
Get the next enabled cue in the sequence, skipping disabled cues.
Returns:
| Type | Description |
|---|---|
|
Cue or None: The next enabled cue to execute, or None if there is no next cue. |
Source code in src/cuemsutils/cues/Cue.py
356 357 358 359 360 361 362 363 364 365 366 367 | |
get_offset()
Get the timecode offset of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
CTimecode |
The cue's timecode offset. |
Source code in src/cuemsutils/cues/Cue.py
160 161 162 163 164 165 166 | |
get_post_go()
Get the post-go behavior of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The post-go behavior (e.g., 'pause'). |
Source code in src/cuemsutils/cues/Cue.py
235 236 237 238 239 240 241 | |
get_postwait()
Get the post-wait time of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
CTimecode |
The time to wait after executing the cue. |
Source code in src/cuemsutils/cues/Cue.py
216 217 218 219 220 221 222 | |
get_prewait()
Get the pre-wait time of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
CTimecode |
The time to wait before executing the cue. |
Source code in src/cuemsutils/cues/Cue.py
197 198 199 200 201 202 203 | |
get_target()
Get the target of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
Uuid |
The target's unique identifier. |
Source code in src/cuemsutils/cues/Cue.py
253 254 255 256 257 258 259 | |
get_timecode()
Get the timecode setting of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
The timecode setting. |
Source code in src/cuemsutils/cues/Cue.py
142 143 144 145 146 147 148 | |
get_ui_properties()
Get the UI properties of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
The cue's UI properties. |
Source code in src/cuemsutils/cues/Cue.py
273 274 275 276 277 278 279 | |
items()
Get all items in the cue as a dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict_items |
A view of the cue's items. |
Source code in src/cuemsutils/cues/Cue.py
321 322 323 324 325 326 327 | |
localize_cue(node_id=None)
Fallback method to set the _local attribute to True.
This method is a fallback for cues that do not implement their own localization logic.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
node_id
|
str | None
|
The ID of the node to localize the cue to. |
None
|
Source code in src/cuemsutils/cues/Cue.py
381 382 383 384 385 386 387 388 389 | |
set_autoload(autoload)
Set whether the cue should be autoloaded.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
autoload
|
bool
|
True to enable autoloading, False to disable it. |
required |
Source code in src/cuemsutils/cues/Cue.py
132 133 134 135 136 137 138 | |
set_description(description)
Set the description of the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
description
|
str
|
The new description for the cue. |
required |
Source code in src/cuemsutils/cues/Cue.py
96 97 98 99 100 101 102 | |
set_enabled(enabled)
Set whether the cue is enabled.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enabled
|
bool
|
True to enable the cue, False to disable it. |
required |
Source code in src/cuemsutils/cues/Cue.py
114 115 116 117 118 119 120 | |
set_id(id)
Set the unique identifier of the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
The new unique identifier. |
required |
Source code in src/cuemsutils/cues/Cue.py
59 60 61 62 63 64 65 66 | |
set_loop(loop)
Set the loop count of the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
loop
|
int
|
The number of times the cue should loop. |
required |
Source code in src/cuemsutils/cues/Cue.py
187 188 189 190 191 192 193 | |
set_name(name)
Set the name of the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The new name for the cue. |
required |
Source code in src/cuemsutils/cues/Cue.py
78 79 80 81 82 83 84 | |
set_offset(offset)
Set the timecode offset of the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
offset
|
The new timecode offset. |
required |
Source code in src/cuemsutils/cues/Cue.py
168 169 170 171 172 173 174 175 | |
set_post_go(post_go)
Set the post-go behavior of the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
post_go
|
str
|
The new post-go behavior. |
required |
Source code in src/cuemsutils/cues/Cue.py
243 244 245 246 247 248 249 | |
set_postwait(postwait)
Set the post-wait time of the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
postwait
|
The new post-wait time. |
required |
Source code in src/cuemsutils/cues/Cue.py
224 225 226 227 228 229 230 231 | |
set_prewait(prewait)
Set the pre-wait time of the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
prewait
|
The new pre-wait time. |
required |
Source code in src/cuemsutils/cues/Cue.py
205 206 207 208 209 210 211 212 | |
set_target(target)
Set the target of the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target
|
The new target identifier. |
required |
Source code in src/cuemsutils/cues/Cue.py
261 262 263 264 265 266 267 268 269 | |
set_timecode(timecode)
Set the timecode setting of the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
timecode
|
bool
|
The new timecode setting. |
required |
Source code in src/cuemsutils/cues/Cue.py
150 151 152 153 154 155 156 | |
set_ui_properties(ui_properties)
Set the UI properties of the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ui_properties
|
dict
|
The new UI properties. |
required |
Source code in src/cuemsutils/cues/Cue.py
281 282 283 284 285 286 287 288 | |
stop()
Stop the execution of the cue.
Source code in src/cuemsutils/cues/Cue.py
391 392 393 | |
target_object(target_object)
Set the target object for the cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target_object
|
The target object to set. |
required |
Source code in src/cuemsutils/cues/Cue.py
329 330 331 332 333 334 335 | |
type()
Get the type of the cue.
Returns:
| Name | Type | Description |
|---|---|---|
type |
The class type of the cue. |
Source code in src/cuemsutils/cues/Cue.py
337 338 339 340 341 342 343 | |
UI_properties
Bases: CuemsDict
Class for managing UI-specific properties of cues.
Source code in src/cuemsutils/cues/Cue.py
395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 | |
__init__(init_dict=None)
Initialize UI properties.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initial UI properties. |
None
|
Source code in src/cuemsutils/cues/Cue.py
398 399 400 401 402 403 404 405 | |
get_timeline_position()
Get the timeline position of the cue.
Returns:
| Type | Description |
|---|---|
|
The timeline position value. |
Source code in src/cuemsutils/cues/Cue.py
407 408 409 410 411 412 413 | |
CueList
Bases: Cue
A cue that contains a list of other cues.
This class extends Cue to provide functionality for managing collections of cues, including nested cue lists and media tracking.
Source code in src/cuemsutils/cues/CueList.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | |
__init__(init_dict=None)
Initialize a CueList.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If not provided, default values from REQ_ITEMS will be used. |
None
|
Source code in src/cuemsutils/cues/CueList.py
17 18 19 20 21 22 23 24 25 26 27 28 | |
append(item)
Add a cue to the end of the list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
item
|
Cue
|
The cue to add. |
required |
Raises:
| Type | Description |
|---|---|
TypeError
|
If the item is not a Cue object. |
Source code in src/cuemsutils/cues/CueList.py
48 49 50 51 52 53 54 55 56 57 58 59 | |
check_mappings(settings)
Check if the cue list mappings are valid.
Currently, all CueList objects are considered local.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
The settings containing project node mappings. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
Always returns True for CueList objects. |
Source code in src/cuemsutils/cues/CueList.py
61 62 63 64 65 66 67 68 69 70 71 72 73 | |
find(uuid)
Find a cue by its UUID in this cue list or its nested lists.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uuid
|
Uuid
|
The UUID to search for. |
required |
Returns:
| Type | Description |
|---|---|
|
Cue or None: The found cue, or None if not found. |
Source code in src/cuemsutils/cues/CueList.py
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 | |
get_contents()
Get the list of cues in this cue list.
Returns:
| Name | Type | Description |
|---|---|---|
list |
list[Cue]
|
The list of Cue objects. |
Source code in src/cuemsutils/cues/CueList.py
30 31 32 33 34 35 36 | |
get_media()
Get a dictionary of all media files present inside contents.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
A dictionary mapping cue UUIDs to their media information. Each entry contains the media file name and cue type. |
Source code in src/cuemsutils/cues/CueList.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
get_next_cue()
Get the next enabled cue to be executed after this cue list.
Returns:
| Type | Description |
|---|---|
|
Cue or None: The next enabled cue to execute, or None if there is no next cue. |
Source code in src/cuemsutils/cues/CueList.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
has_contents()
Check if the cue list has contents.
Returns:
| Name | Type | Description |
|---|---|---|
bool |
True if the cue list has contents, False otherwise. |
Source code in src/cuemsutils/cues/CueList.py
165 166 167 168 169 170 171 | |
items()
Get all items in the cue list as a dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict_items |
A view of the cue list's items. |
Source code in src/cuemsutils/cues/CueList.py
144 145 146 147 148 149 150 151 152 | |
set_contents(contents)
Set the list of cues in this cue list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
contents
|
list
|
The new list of Cue objects. |
required |
Source code in src/cuemsutils/cues/CueList.py
38 39 40 41 42 43 44 | |
times()
Get a list of all cue offsets in this cue list.
Returns:
| Name | Type | Description |
|---|---|---|
list |
A list of timecode offsets for each cue in the list. |
Source code in src/cuemsutils/cues/CueList.py
154 155 156 157 158 159 160 161 162 163 | |
CuemsScript
Bases: dict
A class representing a complete CueMS script.
This class manages a collection of cues organized in a cue list, along with metadata about the script such as creation time and UI properties.
Source code in src/cuemsutils/cues/CuemsScript.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 | |
__init__(init_dict=None)
Initialize a CuemsScript.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If provided, will be used to set initial properties. |
None
|
Source code in src/cuemsutils/cues/CuemsScript.py
27 28 29 30 31 32 33 34 35 36 | |
__json__()
Convert the script to a JSON-compatible dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
A dictionary representation of the script. |
Source code in src/cuemsutils/cues/CuemsScript.py
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | |
find(uuid)
Find a cue by its UUID in the script.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
uuid
|
The UUID to search for. |
required |
Returns:
| Type | Description |
|---|---|
|
Cue or None: The found cue, or None if not found. |
Source code in src/cuemsutils/cues/CuemsScript.py
177 178 179 180 181 182 183 184 185 186 | |
get_CueList()
Get the main cue list of the script.
Returns:
| Name | Type | Description |
|---|---|---|
CueList |
CueList
|
The script's main cue list. |
Source code in src/cuemsutils/cues/CuemsScript.py
129 130 131 132 133 134 135 | |
get_created()
Get the creation timestamp of the script.
Returns:
| Name | Type | Description |
|---|---|---|
datetime |
When the script was created. |
Source code in src/cuemsutils/cues/CuemsScript.py
93 94 95 96 97 98 99 | |
get_description()
Get the description of the script.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The script's description. |
Source code in src/cuemsutils/cues/CuemsScript.py
75 76 77 78 79 80 81 | |
get_id()
Get the unique identifier of the script.
Returns:
| Name | Type | Description |
|---|---|---|
Uuid |
The script's unique identifier. |
Source code in src/cuemsutils/cues/CuemsScript.py
38 39 40 41 42 43 44 | |
get_media()
Get all media files referenced in a CueList.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cuelist
|
CueList
|
The cue list to search in. If not provided, uses the script's main cue list. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict
|
A dictionary mapping Cue UUIDs to their media information. |
Source code in src/cuemsutils/cues/CuemsScript.py
188 189 190 191 192 193 194 195 196 197 198 199 | |
get_media_filenames()
Get all media filenames referenced in a CueList.
Returns:
| Name | Type | Description |
|---|---|---|
list |
list
|
A list of media filenames. |
Source code in src/cuemsutils/cues/CuemsScript.py
201 202 203 204 205 206 207 208 209 | |
get_modified()
Get the last modification timestamp of the script.
Returns:
| Name | Type | Description |
|---|---|---|
datetime |
When the script was last modified. |
Source code in src/cuemsutils/cues/CuemsScript.py
111 112 113 114 115 116 117 | |
get_name()
Get the name of the script.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The script's name. |
Source code in src/cuemsutils/cues/CuemsScript.py
57 58 59 60 61 62 63 | |
get_own_media(config, cuelist=None)
Get media files that are local to the current node.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cuelist
|
CueList
|
The cue list to search in. If not provided, uses the script's main cue list. |
None
|
config
|
dict
|
The configuration containing node information. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict
|
A dictionary mapping media file names to their associated cues that are local to the current node. |
Source code in src/cuemsutils/cues/CuemsScript.py
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | |
get_own_media_filenames(config, cuelist=None)
Get all media filenames that are local to the current node.
Returns:
| Name | Type | Description |
|---|---|---|
list |
list
|
A list of media filenames. |
Source code in src/cuemsutils/cues/CuemsScript.py
249 250 251 252 253 254 255 256 257 258 | |
get_ui_properties()
Get the UI properties of the script.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
CuemsDict
|
The script's UI properties. |
Source code in src/cuemsutils/cues/CuemsScript.py
157 158 159 160 161 162 163 | |
items()
Get all items in the script as a dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict_items |
A view of the script's items. |
Source code in src/cuemsutils/cues/CuemsScript.py
302 303 304 305 306 307 308 309 | |
set_CueList(cuelist)
Set the main cue list of the script.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cuelist
|
CueList or dict
|
The new cue list or a dictionary to create one. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the cuelist is not a valid CueList object or dictionary. |
Source code in src/cuemsutils/cues/CuemsScript.py
137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | |
set_created(created)
Set the creation timestamp of the script.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
created
|
datetime
|
The new creation timestamp. |
required |
Source code in src/cuemsutils/cues/CuemsScript.py
101 102 103 104 105 106 107 | |
set_description(description)
Set the description of the script.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
description
|
str
|
The new description for the script. |
required |
Source code in src/cuemsutils/cues/CuemsScript.py
83 84 85 86 87 88 89 | |
set_id(id)
Set the unique identifier of the script.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
The new unique identifier. |
required |
Source code in src/cuemsutils/cues/CuemsScript.py
46 47 48 49 50 51 52 53 | |
set_modified(modified)
Set the last modification timestamp of the script.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
modified
|
datetime
|
The new modification timestamp. |
required |
Source code in src/cuemsutils/cues/CuemsScript.py
119 120 121 122 123 124 125 | |
set_name(name)
Set the name of the script.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The new name for the script. |
required |
Source code in src/cuemsutils/cues/CuemsScript.py
65 66 67 68 69 70 71 | |
set_ui_properties(ui_properties)
Set the UI properties of the script.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ui_properties
|
dict
|
The new UI properties. |
required |
Source code in src/cuemsutils/cues/CuemsScript.py
165 166 167 168 169 170 171 172 173 | |
setter(settings)
Set the object properties from a dictionary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
dict
|
Dictionary containing property values to set. |
required |
Raises:
| Type | Description |
|---|---|
AttributeError
|
If settings is not a dictionary. |
Source code in src/cuemsutils/cues/CuemsScript.py
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | |
to_json()
Convert the script to a JSON string.
Returns:
| Name | Type | Description |
|---|---|---|
str |
A JSON string representation of the script. |
Source code in src/cuemsutils/cues/CuemsScript.py
260 261 262 263 264 265 266 | |
Cue output configurations.
See docs/canvas_region.md for the coordinate model, alias-vs-custom discrimination, V1 caps, and deferred items (aspect ratio, z-order, off-canvas, multi-custom, drag/resize).
AudioCueOutput
Bases: CueOutput
Output configuration for audio cues.
Free-form output_name; no canvas/region concerns. Left unvalidated by design — audio channels use domain-specific names (e.g. 'system:playback_1').
Source code in src/cuemsutils/cues/CueOutput.py
111 112 113 114 115 116 117 | |
CueOutput
Bases: CuemsDict
Base class for cue output configurations.
This class provides the basic structure for configuring how cues are output to different types of devices or systems.
Source code in src/cuemsutils/cues/CueOutput.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | |
__init__(init_dict=None)
Initialize a CueOutput.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If provided, will be used to set initial properties. |
None
|
Source code in src/cuemsutils/cues/CueOutput.py
92 93 94 95 96 97 98 99 100 | |
__json__()
Convert the output configuration to a JSON-compatible dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
A dictionary representation of the output configuration. |
Source code in src/cuemsutils/cues/CueOutput.py
102 103 104 105 106 107 108 | |
DmxCueOutput
Bases: CueOutput
Output configuration for DMX cues.
Free-form output_name; left unvalidated by design.
Source code in src/cuemsutils/cues/CueOutput.py
239 240 241 242 243 244 | |
VideoCueOutput
Bases: CueOutput
Output configuration for video cues.
Two modes distinguished by output_name shape:
- Alias (
<node_uuid>_<int>): references a monitor-resolved entry from project_mappings.canvas_regionmust be absent. - Custom (
<node_uuid>_custom_<int>): per-cue custom region on this node's canvas.canvas_regionis required and carries normalized floats in[0, 1].
Note: this is the per-cue canvas_region — the authoritative placement
of a cue's output on the node's virtual canvas at playback time.
The UI-template canvas_region in project_mappings.xsd
VideoPutType is a separate concept (a default rectangle offered
by the editor when authoring a custom cue); it is neither a
physical display-layout directive nor a substitute for this field.
Source code in src/cuemsutils/cues/CueOutput.py
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | |
__init__(init_dict=None)
Initialize a VideoCueOutput.
Raises:
| Type | Description |
|---|---|
ValueError
|
On malformed |
Source code in src/cuemsutils/cues/CueOutput.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | |
items()
Return items in XSD element order: output_name, output_geometry, canvas_region.
canvas_region is emitted only when present.
Source code in src/cuemsutils/cues/CueOutput.py
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 | |
DmxChannel
Bases: CuemsDict
A class representing a single DMX channel.
Source code in src/cuemsutils/cues/DmxCue.py
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 | |
__init__(init_dict=None)
Initialize a DMX channel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
int
|
The initial channel value. |
required |
init_dict
|
dict
|
Dictionary containing initialization values. |
None
|
Source code in src/cuemsutils/cues/DmxCue.py
424 425 426 427 428 429 430 431 432 433 434 435 436 | |
__json__()
Convert the region to a JSON-compatible dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
A dictionary representation of the region. |
Source code in src/cuemsutils/cues/DmxCue.py
474 475 476 477 478 479 480 | |
get_channel()
Get the channel number.
Returns:
| Name | Type | Description |
|---|---|---|
int |
The channel number. |
Source code in src/cuemsutils/cues/DmxCue.py
440 441 442 443 444 445 446 | |
get_value()
Get the channel value.
Returns:
| Name | Type | Description |
|---|---|---|
int |
The channel value. |
Source code in src/cuemsutils/cues/DmxCue.py
457 458 459 460 461 462 463 | |
set_channel(channel)
Set the channel number.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num
|
int
|
The new channel number. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
448 449 450 451 452 453 454 | |
set_value(value)
Set the channel value.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
int
|
The new channel value. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
465 466 467 468 469 470 471 | |
DmxCue
Bases: Cue
A cue for handling DMX lighting control.
This class extends Cue to provide specific functionality for DMX lighting control, including scene management, fade timing, and OSC communication for DMX routing.
Source code in src/cuemsutils/cues/DmxCue.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 | |
__init__(init_dict=None)
Initialize a DmxCue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If provided, will be used to set initial properties. |
None
|
Source code in src/cuemsutils/cues/DmxCue.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | |
check_mappings(settings)
Check if the DMX output mappings are valid.
For DMX cues, the output_name format is "{node_uuid}" (just the node UUID). A DMX cue can have multiple outputs (one per target node). This method iterates through all outputs and sets _local=True if ANY output_name matches the current node UUID. Other outputs are ignored.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
The settings containing project node mappings. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
True if the mappings are valid, False otherwise. |
Source code in src/cuemsutils/cues/DmxCue.py
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | |
get_DmxScene()
Get the DMX scene for this cue.
Returns:
| Name | Type | Description |
|---|---|---|
DmxScene |
The current DMX scene. |
Source code in src/cuemsutils/cues/DmxCue.py
138 139 140 141 142 143 144 | |
get_fadein_time()
Get the fade-in time for the DMX cue.
Returns:
| Type | Description |
|---|---|
|
The fade-in time value. |
Source code in src/cuemsutils/cues/DmxCue.py
53 54 55 56 57 58 59 | |
get_fadeout_time()
Get the fade-out time for the DMX cue.
Returns:
| Type | Description |
|---|---|
|
The fade-out time value. |
Source code in src/cuemsutils/cues/DmxCue.py
71 72 73 74 75 76 77 | |
get_outputs()
Get the output routing configuration.
Returns:
| Name | Type | Description |
|---|---|---|
list |
The list of output configurations. |
Source code in src/cuemsutils/cues/DmxCue.py
90 91 92 93 94 95 96 | |
items()
Get all items in the cue as a dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict_items |
A view of the cue's items, with required items included. |
Source code in src/cuemsutils/cues/DmxCue.py
243 244 245 246 247 248 249 250 251 252 | |
offset_route(offset_route)
Set the offset route for DMX timing.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
offset_route
|
str
|
The new offset route. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
170 171 172 173 174 175 176 | |
osc_route(osc_route)
Set the OSC route for DMX control.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
osc_route
|
str
|
The OSC route to use for DMX control. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
162 163 164 165 166 167 168 | |
player(player)
Set the DMX player instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
player
|
The DMX player instance to use. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
178 179 180 181 182 183 184 | |
review_offset(timecode)
Calculate the offset for DMX timing review.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
timecode
|
The timecode to calculate the offset from. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
float |
The calculated offset in milliseconds. |
Source code in src/cuemsutils/cues/DmxCue.py
186 187 188 189 190 191 192 193 194 195 | |
set_DmxScene(dmxscene)
Set the DMX scene for this cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dmxscene
|
DmxScene or dict
|
The new DMX scene or a dictionary to create one. |
required |
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
If the scene type is not supported. |
Source code in src/cuemsutils/cues/DmxCue.py
147 148 149 150 151 152 153 154 155 156 157 158 | |
set_fadein_time(fadein_time)
Set the fade-in time for the DMX cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fadein_time
|
The new fade-in time value. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
61 62 63 64 65 66 67 | |
set_fadeout_time(fadeout_time)
Set the fade-out time for the DMX cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
fadeout_time
|
The new fade-out time value. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
80 81 82 83 84 85 86 | |
set_outputs(outputs)
Set the output routing configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
outputs
|
list
|
The list of output configurations. Each item can be a DmxCueOutput object or a dict that will be converted to DmxCueOutput. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | |
DmxScene
Bases: CuemsDict
A class representing a DMX scene containing multiple universes.
Source code in src/cuemsutils/cues/DmxCue.py
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 | |
__init__(init_dict=None)
Initialize a DMX scene.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If provided, will be used to create DMX universes. |
None
|
Source code in src/cuemsutils/cues/DmxCue.py
257 258 259 260 261 262 263 264 265 266 267 268 269 | |
get_DmxUniverse()
Get a specific DMX universe.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
num
|
int
|
The universe number to get. If None, returns None. |
required |
Returns:
| Type | Description |
|---|---|
|
DmxUniverse or None: The requested universe or None if not found. |
Source code in src/cuemsutils/cues/DmxCue.py
287 288 289 290 291 292 293 294 295 296 297 | |
get_id()
Get the scene ID.
Returns:
| Name | Type | Description |
|---|---|---|
int |
The scene ID. |
Source code in src/cuemsutils/cues/DmxCue.py
271 272 273 274 275 276 277 | |
set_DmxUniverse(universe)
Set a DMX universe at a specific number.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
universe
|
The universe to set. |
required | |
num
|
int
|
The universe number. Defaults to 0. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
301 302 303 304 305 306 307 308 309 310 | |
set_id(scene_id)
Set the scene ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
scene_id
|
int
|
The new scene ID. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
279 280 281 282 283 284 285 | |
DmxUniverse
Bases: CuemsDict
A class representing a DMX universe containing multiple channels.
Source code in src/cuemsutils/cues/DmxCue.py
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 | |
__init__(init_dict=None)
Initialize a DMX universe.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If provided, will be used to create DMX channels. |
None
|
Source code in src/cuemsutils/cues/DmxCue.py
326 327 328 329 330 331 332 333 334 335 336 337 338 | |
get_dmx_channels()
Get the dmx channel for the scene.
Returns:
| Name | Type | Description |
|---|---|---|
list |
The list of dmx channels. |
Source code in src/cuemsutils/cues/DmxCue.py
357 358 359 360 361 362 363 | |
get_universe_num()
Get the universe number.
Returns:
| Name | Type | Description |
|---|---|---|
int |
The universe number. |
Source code in src/cuemsutils/cues/DmxCue.py
340 341 342 343 344 345 346 | |
set_dmx_channels(channels)
Set the output routing configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
channels
|
list
|
The list of output configurations. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 | |
set_universe_num(universe_num)
Set the universe number.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
universe_num
|
int
|
The new universe number. |
required |
Source code in src/cuemsutils/cues/DmxCue.py
348 349 350 351 352 353 354 | |
FadeCue
Bases: ActionCue
A cue that fades a target cue's level to a specified value over a duration.
FadeCue stores all parameters needed by the show engine to execute a smooth level transition: the target cue identifier (inherited from ActionCue), the curve shape, the fade duration, and the destination level.
The starting level is recovered from the live runtime state by the engine; FadeCue does not store it.
Source code in src/cuemsutils/cues/FadeCue.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | |
__init__(init_dict=None)
Initialise a FadeCue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Initialisation values. When omitted, defaults from REQ_ITEMS are used. |
None
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If init_dict explicitly sets action_target to None. |
ValueError
|
If init_dict sets action_type to a value other than 'fade_action'. |
Source code in src/cuemsutils/cues/FadeCue.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
get_action_type()
Return the action type (always 'fade_action').
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
'fade_action' |
Source code in src/cuemsutils/cues/FadeCue.py
78 79 80 81 82 83 84 | |
get_curve_type()
Return the fade curve type.
When the underlying dict holds a plain string (e.g. after deserialization via GenericParser which bypasses the property setter), it is coerced to the correct FadeCurveType member on read so callers always get an enum value.
Returns:
| Name | Type | Description |
|---|---|---|
FadeCurveType |
FadeCurveType
|
The current curve type. |
Source code in src/cuemsutils/cues/FadeCue.py
108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |
get_duration()
Return the fade duration as a CTimecode.
Returns:
| Type | Description |
|---|---|
|
CTimecode | None: The fade duration, or None if not yet set. |
Source code in src/cuemsutils/cues/FadeCue.py
150 151 152 153 154 155 156 | |
get_target_value()
Return the destination level (0–100 inclusive).
Returns:
| Name | Type | Description |
|---|---|---|
int |
int
|
The target level. |
Source code in src/cuemsutils/cues/FadeCue.py
185 186 187 188 189 190 191 | |
items()
Return all items with own REQ_ITEMS appended in XSD sequence order.
The XSD sequence for FadeCueType (extending ActionCueType) is: ...CommonProperties..., action_target, action_type, curve_type, duration, target_value.
Returns:
| Name | Type | Description |
|---|---|---|
dict_items |
Ordered items suitable for XML serialisation. |
Source code in src/cuemsutils/cues/FadeCue.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 | |
set_action_type(action_type)
Set the action type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
action_type
|
str
|
Must be 'fade_action'. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If action_type is not 'fade_action' and the object is fully initialised (post-construction assignment). |
Source code in src/cuemsutils/cues/FadeCue.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | |
set_curve_type(curve_type)
Set the fade curve type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
curve_type
|
FadeCurveType | str
|
A FadeCurveType member or its string value ('linear', 'exponential', 'logarithmic', 'sigmoid'). |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If curve_type is not a recognised value. |
Source code in src/cuemsutils/cues/FadeCue.py
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
set_duration(duration)
Set the fade duration.
None is accepted during construction (GenericParser pattern). Any explicit non-None value that resolves to zero or negative is rejected.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
duration
|
str | CTimecode | float | int | None
|
Timecode-compatible value, or None to clear. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If duration is a non-None value that is zero or negative. |
Source code in src/cuemsutils/cues/FadeCue.py
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |
set_target_value(target_value)
Set the destination level.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
target_value
|
int
|
Destination level in the range 0–100 inclusive. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
If target_value is outside [0, 100]. |
Source code in src/cuemsutils/cues/FadeCue.py
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | |
FadeCurveType
Bases: Enum
Enumeration of supported fade curve shapes.
Source code in src/cuemsutils/cues/FadeCue.py
10 11 12 13 14 15 16 17 18 19 20 21 22 | |
FadeFunctionParameter
Bases: CuemsDict
A named numeric parameter for a parametric fade function.
Source code in src/cuemsutils/cues/FadeProfile.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
FadeProfile
Bases: CuemsDict
Typed fade profile (in or out) attached to a MediaCue.
Supports two modes:
- preset: system-defined function, no user parameters required.
- parametric: user-supplied parameters control the fade curve.
Source code in src/cuemsutils/cues/FadeProfile.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | |
Media
Bases: CuemsDict
A class representing a media file with associated regions.
Source code in src/cuemsutils/cues/MediaCue.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | |
__init__(init_dict=None)
Initialize a Media object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If provided, will be used to set initial properties. |
None
|
Source code in src/cuemsutils/cues/MediaCue.py
122 123 124 125 126 127 128 129 130 | |
get_duration()
Get the duration of the media file.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The duration of the media file. |
Source code in src/cuemsutils/cues/MediaCue.py
169 170 171 172 173 174 175 | |
get_file_name()
Get the media file name.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The name of the media file. |
Source code in src/cuemsutils/cues/MediaCue.py
132 133 134 135 136 137 138 | |
get_id()
Get the UUID of the media file.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The UUID of the media file. |
Source code in src/cuemsutils/cues/MediaCue.py
150 151 152 153 154 155 156 | |
get_regions()
Get the list of regions in the media file.
Returns:
| Name | Type | Description |
|---|---|---|
list |
The list of Region objects. |
Source code in src/cuemsutils/cues/MediaCue.py
187 188 189 190 191 192 193 | |
set_duration(duration)
Set the duration of the media file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
duration
|
str
|
The new duration of the media file. |
required |
Source code in src/cuemsutils/cues/MediaCue.py
177 178 179 180 181 182 183 | |
set_file_name(file_name)
Set the media file name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_name
|
str
|
The new media file name. |
required |
Source code in src/cuemsutils/cues/MediaCue.py
140 141 142 143 144 145 146 | |
set_id(id)
Set the UUID of the media file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
The new UUID of the media file. |
required |
Source code in src/cuemsutils/cues/MediaCue.py
158 159 160 161 162 163 164 165 | |
set_regions(regions)
Set the list of regions in the media file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
regions
|
list or Region
|
A list of regions or a single region. If not already Region objects, they will be converted. |
required |
Source code in src/cuemsutils/cues/MediaCue.py
195 196 197 198 199 200 201 202 203 204 205 206 207 | |
MediaCue
Bases: Cue
Base class for media-related cues (audio and video).
This class extends Cue to provide common functionality for media playback, including media file handling and output routing.
Source code in src/cuemsutils/cues/MediaCue.py
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 | |
__init__(init_dict=None)
Initialize a MediaCue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If not provided, default values from REQ_ITEMS will be used. |
None
|
Source code in src/cuemsutils/cues/MediaCue.py
218 219 220 221 222 223 224 225 226 227 228 229 | |
get_Media()
Get the media object associated with this cue.
Returns:
| Name | Type | Description |
|---|---|---|
Media |
The media object containing file and region information. |
Source code in src/cuemsutils/cues/MediaCue.py
246 247 248 249 250 251 252 | |
get_all_output_names()
Get all output names splitted into node and output ids for the media cue. Returns: list: The list of output names.
Source code in src/cuemsutils/cues/MediaCue.py
334 335 336 337 338 339 340 341 342 | |
get_fade_profile(direction)
Return the fade profile for in/out (or fade_in/fade_out).
Source code in src/cuemsutils/cues/MediaCue.py
319 320 321 322 323 324 325 326 327 328 329 330 331 332 | |
get_outputs()
Get the output routing configuration.
Returns:
| Name | Type | Description |
|---|---|---|
list |
The list of output configurations. |
Source code in src/cuemsutils/cues/MediaCue.py
266 267 268 269 270 271 272 | |
items()
Get all items in the cue as a dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict_items |
A view of the cue's items, with required items included. |
Source code in src/cuemsutils/cues/MediaCue.py
355 356 357 358 359 360 361 362 363 364 | |
localize_cue(node_id)
Localize the cue outputs to the given node UUID.
Sets the _local attribute to True if any of the cue outputs are local to the given node UUID, False otherwise.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
node_id
|
str
|
The ID of the node to localize the cue to. |
required |
Source code in src/cuemsutils/cues/MediaCue.py
344 345 346 347 348 349 350 351 352 | |
set_Media(value)
Set the media object for this cue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
Media or dict
|
The media object or dictionary to create one. |
required |
Source code in src/cuemsutils/cues/MediaCue.py
254 255 256 257 258 259 260 261 262 | |
set_outputs(outputs)
Set the output routing configuration.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
outputs
|
list
|
The list of output configurations. |
required |
Source code in src/cuemsutils/cues/MediaCue.py
274 275 276 277 278 279 280 | |
Region
Bases: CuemsDict
A class representing a region within a media file.
Source code in src/cuemsutils/cues/MediaCue.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
__init__(init_dict=None)
Initialize a Region.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If not provided, default values will be used. |
None
|
Source code in src/cuemsutils/cues/MediaCue.py
24 25 26 27 28 29 30 31 32 33 34 35 | |
__json__()
Convert the region to a JSON-compatible dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
A dictionary representation of the region. |
Source code in src/cuemsutils/cues/MediaCue.py
111 112 113 114 115 116 117 | |
get_id()
Get the region ID.
Returns:
| Name | Type | Description |
|---|---|---|
str |
The region's identifier. |
Source code in src/cuemsutils/cues/MediaCue.py
37 38 39 40 41 42 43 | |
get_in_time()
Get the in point of the region.
Returns:
| Name | Type | Description |
|---|---|---|
CTimecode |
The timecode where the region starts. |
Source code in src/cuemsutils/cues/MediaCue.py
73 74 75 76 77 78 79 | |
get_loop()
Get the loop count for this region.
Returns:
| Name | Type | Description |
|---|---|---|
int |
The number of times the region should loop. |
Source code in src/cuemsutils/cues/MediaCue.py
55 56 57 58 59 60 61 | |
get_out_time()
Get the out point of the region.
Returns:
| Name | Type | Description |
|---|---|---|
CTimecode |
The timecode where the region ends. |
Source code in src/cuemsutils/cues/MediaCue.py
92 93 94 95 96 97 98 | |
set_id(id)
Set the region ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
The new region identifier. |
required |
Source code in src/cuemsutils/cues/MediaCue.py
45 46 47 48 49 50 51 | |
set_in_time(in_time)
Set the in point of the region.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
in_time
|
The new in point timecode. |
required |
Source code in src/cuemsutils/cues/MediaCue.py
81 82 83 84 85 86 87 88 | |
set_loop(loop)
Set the loop count for this region.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
loop
|
int
|
The number of times the region should loop. |
required |
Source code in src/cuemsutils/cues/MediaCue.py
63 64 65 66 67 68 69 | |
set_out_time(out_time)
Set the out point of the region.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
out_time
|
The new out point timecode. |
required |
Source code in src/cuemsutils/cues/MediaCue.py
100 101 102 103 104 105 106 107 | |
VideoCue
Bases: MediaCue
A cue for handling video playback and control.
This class extends MediaCue to provide specific functionality for video playback, including frame rate handling and OSC communication for video routing.
Source code in src/cuemsutils/cues/VideoCue.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
__init__(init_dict=None)
Initialize a VideoCue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
init_dict
|
dict
|
Dictionary containing initialization values. If provided, will be used to set initial properties. |
None
|
Source code in src/cuemsutils/cues/VideoCue.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |
check_mappings(settings)
Check if the video output mappings are valid.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
settings
|
The settings containing project node mappings. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
True if the mappings are valid, False otherwise. |
Source code in src/cuemsutils/cues/VideoCue.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
items()
Get all items in the cue as a dictionary.
Returns:
| Name | Type | Description |
|---|---|---|
dict_items |
A view of the cue's items. |
Source code in src/cuemsutils/cues/VideoCue.py
50 51 52 53 54 55 56 57 | |
osc_route(osc_route)
Set the OSC route for video control.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
osc_route
|
str
|
The OSC route to use for video control. |
required |
Source code in src/cuemsutils/cues/VideoCue.py
42 43 44 45 46 47 48 | |
player(player)
Set the video player instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
player
|
The video player instance to use. |
required |
Source code in src/cuemsutils/cues/VideoCue.py
34 35 36 37 38 39 40 | |
stop()
Stop the video playback.
This method sets the stop request flag to halt video playback.
Source code in src/cuemsutils/cues/VideoCue.py
59 60 61 62 63 64 | |