mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
12 lines
368 B
Python
12 lines
368 B
Python
from pyblish import api
|
|
|
|
class CollectFramerate(api.ContextPlugin):
|
|
"""Collect framerate from selected sequence."""
|
|
|
|
order = api.CollectorOrder + 0.01
|
|
label = "Collect Framerate"
|
|
hosts = ["nukestudio"]
|
|
|
|
def process(self, context):
|
|
sequence = context.data["activeSequence"]
|
|
context.data["framerate"] = sequence.framerate().toFloat()
|