From 3fc15cca6d5cd76e96c9e32a045afd199cdcf8c9 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Thu, 8 Oct 2020 15:59:26 +0200 Subject: [PATCH] fix(hiero): fps order of clip instance data collecting --- pype/plugins/hiero/publish/collect_clips.py | 5 +++-- pype/plugins/hiero/publish/collect_framerate.py | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pype/plugins/hiero/publish/collect_clips.py b/pype/plugins/hiero/publish/collect_clips.py index e11ad93883..2c7ea3ec60 100644 --- a/pype/plugins/hiero/publish/collect_clips.py +++ b/pype/plugins/hiero/publish/collect_clips.py @@ -144,8 +144,9 @@ class CollectClips(api.ContextPlugin): "family": "clip", "families": [], "handleStart": projectdata.get("handleStart", 0), - "handleEnd": projectdata.get("handleEnd", 0)}) - + "handleEnd": projectdata.get("handleEnd", 0), + "fps": context.data["fps"] + }) instance = context.create_instance(**data) self.log.info("Created instance: {}".format(instance)) diff --git a/pype/plugins/hiero/publish/collect_framerate.py b/pype/plugins/hiero/publish/collect_framerate.py index 6d2d2eef2b..e11433adb1 100644 --- a/pype/plugins/hiero/publish/collect_framerate.py +++ b/pype/plugins/hiero/publish/collect_framerate.py @@ -4,13 +4,14 @@ from pyblish import api class CollectFramerate(api.ContextPlugin): """Collect framerate from selected sequence.""" - order = api.CollectorOrder + 0.01 + order = api.CollectorOrder + 0.001 label = "Collect Framerate" hosts = ["hiero"] def process(self, context): sequence = context.data["activeSequence"] context.data["fps"] = self.get_rate(sequence) + self.log.info("Framerate is collected: {}".format(context.data["fps"])) def get_rate(self, sequence): num, den = sequence.framerate().toRational()