ayon-core/pype/plugins/nuke/publish/collect_framerate.py
Jakub Jezek b40e1f5511 fix(all): rename attributes
- `frameRate` to `fps`
- `startFrame` to `frameStart`
- `endFrame` to `frameEnd`
- `fstart` to `frameStart`
- `fend` to `frameEnd`
- `handle_start` to `handleStart`
- `handle_end` to `handleEnd`
- `resolution_width` to `resolutionWidth`
- `resolution_height` to `resolutionHeight`
- `pixel_aspect` to `pixelAspect`
2019-07-31 12:38:14 +02:00

17 lines
336 B
Python

import nuke
import pyblish.api
class CollectFramerate(pyblish.api.ContextPlugin):
"""Collect framerate."""
order = pyblish.api.CollectorOrder
label = "Collect Framerate"
hosts = [
"nuke",
"nukeassist"
]
def process(self, context):
context.data["fps"] = nuke.root()["fps"].getValue()