Skip to content

collect_framerate

CollectFramerate

Bases: ContextPlugin

Collect framerate.

Source code in client/ayon_nuke/plugins/publish/collect_framerate.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
class CollectFramerate(pyblish.api.ContextPlugin):
    """Collect framerate."""

    order = pyblish.api.CollectorOrder
    label = "Collect Framerate"
    hosts = [
        "nuke",
        "nukeassist"
    ]

    settings_category = "nuke"

    def process(self, context):
        context.data["fps"] = nuke.root()["fps"].getValue()