worker
CollectSceneData
Bases: BaseCommand
Helper command which will collect all useful info about workfile.
Result is dictionary with all layers data, exposure frames by layer ids pre/post behavior of layers by their ids, group information and scene data.
Source code in client/ayon_tvpaint/worker/worker_job.py
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 |
|
ExecuteGeorgeScript
Bases: BaseCommand
Execute multiline george script in TVPaint.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
script_lines(list) | Lines that will be executed in george script through temp george file. | required | |
tmp_file_keys(list) | List of formatting keys in george script that require replacement with path to a temp file where result will be stored. The content of file is stored to result by the key. | required | |
root_dir_key(str) | Formatting key that will be replaced in george script with job queue root which can be different on worker side. | required | |
data(dict) | Raw data about command. | required |
Source code in client/ayon_tvpaint/worker/worker_job.py
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 |
|
from_existing(data)
classmethod
Recreate the object from data.
Source code in client/ayon_tvpaint/worker/worker_job.py
238 239 240 241 242 243 244 |
|
ExecuteSimpleGeorgeScript
Bases: BaseCommand
Execute simple george script in TVPaint.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
script(str) | Script that will be executed. | required |
Source code in client/ayon_tvpaint/worker/worker_job.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
|
JobFailed
Bases: Exception
Raised when job was sent and finished unsuccessfully.
Source code in client/ayon_tvpaint/worker/worker_job.py
16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
ProcessTVPaintCommands
Bases: TVPaintCommands
Worker side of TVPaint Commands.
It is expected this object is created only on worker's side from existing data loaded from job.
Workfile path logic is based on 'SenderTVPaintCommands'.
Source code in client/ayon_tvpaint/worker/worker_job.py
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 |
|
communicator
property
Access to TVPaint communicator.
commands_from_data(commands_data)
Recreate command from passed data.
Source code in client/ayon_tvpaint/worker/worker_job.py
486 487 488 489 490 491 492 493 |
|
execute()
Execute commands.
Source code in client/ayon_tvpaint/worker/worker_job.py
522 523 524 525 526 527 528 529 530 531 532 533 |
|
execute_george(george_script)
Helper method to execute george script.
Source code in client/ayon_tvpaint/worker/worker_job.py
495 496 497 |
|
execute_george_through_file(george_script)
Helper method to execute george script through temp file.
Source code in client/ayon_tvpaint/worker/worker_job.py
499 500 501 502 503 504 505 506 507 508 |
|
SenderTVPaintCommands
Bases: TVPaintCommands
Sender implementation of TVPaint Commands.
Source code in client/ayon_tvpaint/worker/worker_job.py
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 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 |
|
commands_data()
Commands data to be able recreate them.
Source code in client/ayon_tvpaint/worker/worker_job.py
392 393 394 395 396 397 |
|
send_job_and_wait()
Send job to workers server and wait for response.
Result of job is stored into the object.
Raises:
Type | Description |
---|---|
JobFailed | When job was finished but not successfully. |
Source code in client/ayon_tvpaint/worker/worker_job.py
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 |
|
to_job_data()
Convert commands to job data before sending to workers server.
Source code in client/ayon_tvpaint/worker/worker_job.py
399 400 401 402 403 404 405 |
|