item_approval_status_changed
SyncsketchItemApprovalStatusChanged
Bases: FtrackNoteSyncing
SyncSketch Item Approval Status Changed Event Handler.
This class is responsible for processing SyncSketch Item Approval Status Changed events.
Source code in service/processor/event_handlers/item_approval_status_changed.py
6 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 |
|
__init__(addon_settings)
Ensure both Ayon, Syncsketch and Ftrack connections are available.
Source code in service/processor/event_handlers/item_approval_status_changed.py
13 14 15 16 17 |
|
process(payload)
Update an Ftrack asset version or task with SyncSketch notes.
This is processing particular SyncSketch review item with status synchronization thanks to settings mapping.
Payload example
{ 'action': 'item_approval_status_changed', 'account': { 'id': 553271268, 'name': 'testAPI' }, 'item_creator': { 'email': 'script_user_003f785a435e4759', 'id': 564818831, 'name': 'Script User' }, 'item_id': 20252190, 'item_name': 'sh020 | compositing | v3 .mp4', 'new_status': 'approved', 'old_status': 'on_hold', 'project': { 'id': 310312, 'name': 'SyncSketchTesting' }, 'review': { 'id': 2853840, 'name': 'Uploads from Ayon' }, 'user': { 'email': 'ayonocs@gmail.com', 'username': 'ayonocs' } }
Parameters:
Name | Type | Description | Default |
---|---|---|---|
payload | dict | Dict with the | required |
Source code in service/processor/event_handlers/item_approval_status_changed.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 |
|