flame: testing in publish plugin

This commit is contained in:
Jakub Jezek 2022-01-05 21:44:29 +01:00
parent 723bfb2b3c
commit 9d0e3363c5
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -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'
})