Commit 5643dee
authored
SG-41173: Add uuid and soft_deleted properties for OTIO-based Live Review (#1021)
### SG-41173: Add uuid and soft_deleted properties for OTIO-based Live
Review
### Summarize your change.
- [X] Generate a UUID for each new drawn stroke with `generateUuid()`
- [X] Add PyObject_Str in the MuPy converter to convert a UUID object to
a string
- [X] Add `findStrokeByUuid()` to retrieve the RV node string based on
its uuid
- [X] Update undo, redo and clear operations to use the uuid instead of
the RV node string
- [X] Send an internal event for undo and redo paint events with the
list of affected strokes to allow the Live Review plugin to send
PAINT_BATCH_UPDATE events with the corresponding uuids
- [X] Add `soft_deleted` as a new OTIO Paint schema property required in
the new PAINT_BATCH_UPDATE payload
- [X] Update the OTIO Paint schema to version 2 (Note that this will
prevent any apps from understanding strokes drawn by RV until they also
update their version)
### Describe the reason for the change.
These changes are needed to match the new requirements for undo-redo in
OTIO-based Live Review sessions. All strokes drawn are received will
identified via a uuid to manage their state. The `soft_deleted` property
will be used to know if the stroke should be rendered or not. Note that
the behaviour of the annotate mode should be the same as before. The
only difference is that strokes are tracked through their uuid instead
of their RV node string to facilitate the new implementation of
undo-redo required for Live Review. This PR is needed for a second PR
that will be created soon on the Commercial RV repo.
### Describe what you have tested and on which operating system.
Drawing, undoing, redoing and clearing strokes was tested on macOS
15.6.1 with RV standalone and between two instances of RV in an
OTIO-based Live Review session
---------
Signed-off-by: Éloïse Brosseau <[email protected]>1 parent e8d07ea commit 5643dee
File tree
5 files changed
+197
-69
lines changed- src
- lib/mu/MuPy
- MuPy
- plugins/rv-packages
- annotate
- otio_reader
5 files changed
+197
-69
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
1046 | 1049 | | |
1047 | 1050 | | |
1048 | 1051 | | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1049 | 1059 | | |
1050 | 1060 | | |
1051 | 1061 | | |
| |||
0 commit comments