Skip to content

Commit

Permalink
Squashed v1.6.0...272992a
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Yu committed Aug 11, 2021
1 parent 4a5f88f commit e645c1e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# ---- ignore special files written during config setup
tk-metadata

# compiled python files
*.py[cod]

# C extensions
Expand Down
25 changes: 12 additions & 13 deletions python/tk_nuke_writenode/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,10 @@ def convert_sg_to_nuke_write_nodes(self):
node_name = sg_wn.name()
node_pos = (sg_wn.xpos(), sg_wn.ypos())

# create new regular Write node:
new_wn = nuke.createNode("Write")
new_wn.setSelected(False)
# create new regular Write node in root (see self.get_nodes()):
with nuke.root():
new_wn = nuke.createNode("Write")
new_wn.setSelected(False)

# copy across file & proxy knobs (if we've defined a proxy template):
new_wn["file"].setValue(sg_wn["cached_path"].evaluate())
Expand Down Expand Up @@ -1120,7 +1121,11 @@ def __set_profile(self, node, profile_name, reset_all_settings=False):

# set the format
self.__populate_format_settings(
node, file_type, file_settings, reset_all_settings, promote_write_knobs,
node,
file_type,
file_settings,
reset_all_settings,
promote_write_knobs,
)

# cache the type and settings on the root node so that
Expand Down Expand Up @@ -1534,21 +1539,15 @@ def __update_render_path(self, node, force_reset=False, is_proxy=False):

# render path could not be computed for some reason - display warning
# to the user in the property editor:
path_warning += (
path_warning += "{0}<br><br>&nbsp;&nbsp;&nbsp;{1}<br>".format(
"<br>".join(
self.__wrap_text(
"The render path is currently frozen because Toolkit could not "
"determine a valid path! This was due to the following problem:",
60,
)
)
+ "<br>"
)
path_warning += "<br>"
path_warning += (
"&nbsp;&nbsp;&nbsp;"
+ " <br>&nbsp;&nbsp;&nbsp;".join(self.__wrap_text(str(e), 57))
+ " <br>"
),
" <br>&nbsp;&nbsp;&nbsp;".join(self.__wrap_text(str(e), 57)),
)

if cached_path:
Expand Down

0 comments on commit e645c1e

Please sign in to comment.