mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix(nuke): validator clam fps float number
This commit is contained in:
parent
544f7637b5
commit
d1dd502357
1 changed files with 3 additions and 6 deletions
|
|
@ -74,17 +74,14 @@ class ValidateScript(pyblish.api.InstancePlugin):
|
||||||
if "handleEnd" in asset_attributes:
|
if "handleEnd" in asset_attributes:
|
||||||
handle_end = asset_attributes["handleEnd"]
|
handle_end = asset_attributes["handleEnd"]
|
||||||
|
|
||||||
# Set frame range with handles
|
asset_attributes["fps"] = float("{0:.4f}".format(
|
||||||
# asset_attributes["frameStart"] -= handle_start
|
asset_attributes["fps"]))
|
||||||
# asset_attributes["frameEnd"] += handle_end
|
|
||||||
if len(str(asset_attributes["fps"])) > 4:
|
|
||||||
asset_attributes["fps"] = float("{0:.8f}".format(asset_attributes["fps"]))
|
|
||||||
|
|
||||||
# Get values from nukescript
|
# Get values from nukescript
|
||||||
script_attributes = {
|
script_attributes = {
|
||||||
"handleStart": ctx_data["handleStart"],
|
"handleStart": ctx_data["handleStart"],
|
||||||
"handleEnd": ctx_data["handleEnd"],
|
"handleEnd": ctx_data["handleEnd"],
|
||||||
"fps": ctx_data["fps"],
|
"fps": float("{0:.4f}".format(ctx_data["fps"])),
|
||||||
"frameStart": ctx_data["frameStart"],
|
"frameStart": ctx_data["frameStart"],
|
||||||
"frameEnd": ctx_data["frameEnd"],
|
"frameEnd": ctx_data["frameEnd"],
|
||||||
"resolutionWidth": ctx_data["resolutionWidth"],
|
"resolutionWidth": ctx_data["resolutionWidth"],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue