Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1540 from pypeclub/bugfix/1538-settings-are-not-p…
Browse files Browse the repository at this point in the history
…ropagated-to-nuke-write-nodes
  • Loading branch information
mkolar authored May 19, 2021
2 parents 839ad2b + a4b1a90 commit 39d2d71
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions openpype/hosts/nuke/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ def get_created_node_imageio_setting(**kwarg):
imageio_node = None
for node in imageio_nodes:
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
Expand Down Expand Up @@ -340,9 +339,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
)
Expand Down

0 comments on commit 39d2d71

Please sign in to comment.