Nuke: creator was to setting correct settings

This commit is contained in:
Jakub Jezek 2021-05-19 18:24:00 +02:00
parent 7c1e8f47b4
commit 496e550d65
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -55,9 +55,10 @@ def get_created_node_imageio_setting(**kwarg):
log.info(node)
if (node["nukeNodeClass"] != nodeclass) and (
creator not in node["plugins"]):
continue
imageio_node = node
if (nodeclass in node["nukeNodeClass"]) and (
creator in node["plugins"]):
imageio_node = node
break
log.info("ImageIO node: {}".format(imageio_node))
return imageio_node
@ -340,9 +341,9 @@ def create_write_node(name, data, input=None, prenodes=None, review=True):
nuke.message(msg)
# build file path to workfiles
fpath = str(anatomy_filled["work"]["folder"]).replace("\\", "/")
fdir = str(anatomy_filled["work"]["folder"]).replace("\\", "/")
fpath = data["fpath_template"].format(
work=fpath, version=data["version"], subset=data["subset"],
work=fdir, version=data["version"], subset=data["subset"],
frame=data["frame"],
ext=representation
)