mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
flame: testing in publish plugin
This commit is contained in:
parent
723bfb2b3c
commit
9d0e3363c5
1 changed files with 21 additions and 0 deletions
|
|
@ -24,3 +24,24 @@ class CollectTestSelection(pyblish.api.ContextPlugin):
|
|||
otio_timeline = otio_export.create_otio_timeline(sequence)
|
||||
|
||||
self.log.info(pformat(otio_timeline))
|
||||
|
||||
# test segment markers
|
||||
for ver in sequence.versions:
|
||||
for track in ver.tracks:
|
||||
if len(track.segments) == 0 and track.hidden:
|
||||
continue
|
||||
|
||||
for segment in track.segments:
|
||||
if str(segment.name)[1:-1] == "":
|
||||
continue
|
||||
if not segment.selected:
|
||||
continue
|
||||
|
||||
self.log.debug("Segment with OpenPypeData: {}".format(
|
||||
segment.name))
|
||||
|
||||
lib.imprint(segment, {
|
||||
'asset': 'sq020sh0280',
|
||||
'family': 'render',
|
||||
'subset': 'subsetMain'
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue