Skip to content

Commit

Permalink
Fix distribution of otioClip attributes to plates
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Nov 14, 2024
1 parent cc0d27a commit 0624bbe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
13 changes: 12 additions & 1 deletion client/ayon_resolve/plugins/publish/collect_plates.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import pyblish
import pyblish.api

from ayon_resolve.otio import utils


class CollectPlate(pyblish.api.InstancePlugin):
Expand All @@ -16,6 +18,15 @@ def process(self, instance):
"""
instance.data["families"].append("clip")

otio_timeline = instance.context.data["otioTimeline"]
otio_clip, marker = utils.get_marker_from_clip_index(
otio_timeline, instance.data["clip_index"]
)
if not otio_clip:
raise RuntimeError("Could not retrieve otioClip for shot %r", instance)

instance.data["otioClip"] = otio_clip

# Retrieve instance data from parent instance shot instance.
parent_instance_id = instance.data["parent_instance_id"]
edit_shared_data = instance.context.data["editorialSharedData"]
Expand Down
1 change: 0 additions & 1 deletion client/ayon_resolve/plugins/publish/collect_shots.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ class CollectShot(pyblish.api.InstancePlugin):
SHARED_KEYS = (
"folderPath",
"fps",
"otioClip",
"resolutionWidth",
"resolutionHeight",
"pixelAspect",
Expand Down

0 comments on commit 0624bbe

Please sign in to comment.