global: removing trayp host from plugins

This commit is contained in:
Jakub Jezek 2022-07-21 08:24:29 +02:00
parent 34f43fe86a
commit 449fabf449
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
2 changed files with 11 additions and 11 deletions

View file

@ -23,7 +23,7 @@ class CollectOtioSubsetResources(pyblish.api.InstancePlugin):
label = "Collect OTIO Subset Resources"
order = pyblish.api.CollectorOrder - 0.077
families = ["clip"]
hosts = ["resolve", "hiero", "flame", "traypublisher"]
hosts = ["resolve", "hiero", "flame"]
def process(self, instance):
@ -116,8 +116,10 @@ class CollectOtioSubsetResources(pyblish.api.InstancePlugin):
# check in two way if it is sequence
if hasattr(otio.schema, "ImageSequenceReference"):
# for OpenTimelineIO 0.13 and newer
if isinstance(media_ref,
otio.schema.ImageSequenceReference):
if isinstance(
media_ref,
otio.schema.ImageSequenceReference
):
is_sequence = True
else:
# for OpenTimelineIO 0.12 and older
@ -139,11 +141,9 @@ class CollectOtioSubsetResources(pyblish.api.InstancePlugin):
padding=media_ref.frame_zero_padding
)
collection.indexes.update(
[i for i in range(a_frame_start_h, (a_frame_end_h + 1))])
list(range(a_frame_start_h, (a_frame_end_h + 1)))
)
self.log.debug(collection)
repre = self._create_representation(
frame_start, frame_end, collection=collection)
else:
# in case it is file sequence but not new OTIO schema
# `ImageSequenceReference`
@ -152,9 +152,9 @@ class CollectOtioSubsetResources(pyblish.api.InstancePlugin):
path, trimmed_media_range_h, metadata)
self.staging_dir, collection = collection_data
self.log.debug(collection)
repre = self._create_representation(
frame_start, frame_end, collection=collection)
self.log.debug(collection)
repre = self._create_representation(
frame_start, frame_end, collection=collection)
else:
_trim = False
dirname, filename = os.path.split(media_ref.target_url)

View file

@ -20,7 +20,7 @@ class ExtractOTIOTrimmingVideo(openpype.api.Extractor):
order = api.ExtractorOrder
label = "Extract OTIO trim longer video"
families = ["trim"]
hosts = ["resolve", "hiero", "flame", "traypublisher"]
hosts = ["resolve", "hiero", "flame"]
def process(self, instance):
self.staging_dir = self.staging_dir(instance)