diff --git a/client/ayon_resolve/plugins/publish/collect_editorial_package.py b/client/ayon_resolve/plugins/publish/collect_editorial_package.py index 5dbed13658..8f97349f27 100644 --- a/client/ayon_resolve/plugins/publish/collect_editorial_package.py +++ b/client/ayon_resolve/plugins/publish/collect_editorial_package.py @@ -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.""" @@ -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}") diff --git a/client/ayon_resolve/plugins/publish/extract_intermediate_representation.py b/client/ayon_resolve/plugins/publish/extract_intermediate_representation.py index dd2d671eb8..9d2053e621 100644 --- a/client/ayon_resolve/plugins/publish/extract_intermediate_representation.py +++ b/client/ayon_resolve/plugins/publish/extract_intermediate_representation.py @@ -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)