mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
anatomy data from instance rather then context
This commit is contained in:
parent
6027b1e080
commit
1abe920b5f
1 changed files with 6 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ class CollectOtioSubsetResources(pyblish.api.InstancePlugin):
|
|||
"""Get Resources for a subset version"""
|
||||
|
||||
label = "Collect OTIO Subset Resources"
|
||||
order = pyblish.api.CollectorOrder + 0.0021
|
||||
order = pyblish.api.CollectorOrder + 0.491
|
||||
families = ["clip"]
|
||||
hosts = ["resolve", "hiero", "flame"]
|
||||
|
||||
|
|
@ -50,9 +50,9 @@ class CollectOtioSubsetResources(pyblish.api.InstancePlugin):
|
|||
|
||||
# get basic variables
|
||||
otio_clip = instance.data["otioClip"]
|
||||
otio_avalable_range = otio_clip.available_range()
|
||||
media_fps = otio_avalable_range.start_time.rate
|
||||
available_duration = otio_avalable_range.duration.value
|
||||
otio_available_range = otio_clip.available_range()
|
||||
media_fps = otio_available_range.start_time.rate
|
||||
available_duration = otio_available_range.duration.value
|
||||
|
||||
# get available range trimmed with processed retimes
|
||||
retimed_attributes = get_media_range_with_retimes(
|
||||
|
|
@ -248,7 +248,7 @@ class CollectOtioSubsetResources(pyblish.api.InstancePlugin):
|
|||
# Task can be optional in anatomy data
|
||||
host_name = context.data["hostName"]
|
||||
family = instance.data["family"]
|
||||
anatomy_data = instance.context.data["anatomyData"]
|
||||
anatomy_data = instance.data["anatomyData"]
|
||||
task_info = anatomy_data.get("task") or {}
|
||||
|
||||
return get_publish_template_name(
|
||||
|
|
@ -259,4 +259,4 @@ class CollectOtioSubsetResources(pyblish.api.InstancePlugin):
|
|||
task_type=task_info.get("type"),
|
||||
project_settings=context.data["project_settings"],
|
||||
logger=self.log
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue