review_session_end
SyncsketchReviewSessionEnd
Bases: FtrackNoteSyncing
SyncSketch Review Session End Event Handler.
This class is responsible for processing SyncSketch Review Session End events.
Source code in service/processor/event_handlers/review_session_end.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 |
|
__init__(addon_settings)
Ensure both Ayon, Syncsketch and Ftrack connections are available.
Source code in service/processor/event_handlers/review_session_end.py
13 14 15 16 17 18 19 |
|
process(payload)
Update an Ftrack task with SyncSketch notes.
The payload contains a SyncSketch review, which we use to find the associated Ayon entity, and through that the Ftrack AssetVersion and Task, if all is found, we try to update the Task's notes with the ones from SyncSketch that are not already there.
Notes are published as the same user as in SyncSketch if the user has the username in Ftrack otherwise it defaults to the API username.
Payload example
{ 'action': 'review_session_end', 'review': { 'id': 2853840, 'link': 'https://syncsketch.com/sketch/YmU2YTUyZDY4/', 'name': 'Uploads from Ayon' }, 'account': { 'id': 553271268 }, 'project': { 'id': 310312, 'name': 'SyncSketchTesting' } }
Parameters:
Name | Type | Description | Default |
---|---|---|---|
payload | dict | Dict with the | required |
Returns:
Type | Description |
---|---|
None |
Source code in service/processor/event_handlers/review_session_end.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 |
|