mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 13:24:54 +01:00
global: removing trayp host from plugins
This commit is contained in:
parent
34f43fe86a
commit
449fabf449
2 changed files with 11 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue