mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
- `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`
17 lines
336 B
Python
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()
|