mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #627 from pypeclub/bugfix/hiero-fps-plugin-order
fix(hiero): fps order of clip instance data collecting
This commit is contained in:
commit
02127c8d0c
2 changed files with 5 additions and 3 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue