Skip to content

Commit

Permalink
AY-7222 Make editorial package reviewable
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Dec 9, 2024
1 parent 93eda9a commit 44f85fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
19 changes: 13 additions & 6 deletions client/ayon_resolve/plugins/publish/collect_editorial_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import ayon_api

from ayon_resolve.api.lib import maintain_current_timeline


class EditorialPackageInstances(pyblish.api.InstancePlugin):
"""Collect all Track items selection."""
Expand Down Expand Up @@ -44,11 +46,16 @@ def process(self, instance):

instance.data["version"] = version

instance.data.update(
{
"mediaPoolItem": media_pool_item,
"item": media_pool_item,
}
)
with maintain_current_timeline(media_pool_item) as timeline:
instance.data.update(
{
"mediaPoolItem": media_pool_item,
"item": media_pool_item,
"fps": timeline.GetSetting("timelineFrameRate"),
"frameStart": timeline.GetStartFrame(),
"frameEnd": timeline.GetEndFrame()
}
)
instance.data["families"].append("review")

self.log.debug(f"Editorial Package: {instance.data}")
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ def process(self, instance):

self.log.debug(f"Rendered file: {rendered_file}")

# create drp workfile representation
# create intermediate workfile representation
representation_intermediate = {
"name": "intermediate",
"ext": os.path.splitext(rendered_file)[1][1:],
"files": rendered_file.name,
"stagingDir": staging_dir,
"tags": ["review"]
}
self.log.debug(f"Video representation: {representation_intermediate}")
instance.data["representations"].append(representation_intermediate)
Expand Down

0 comments on commit 44f85fe

Please sign in to comment.