diff --git a/python/tk_nuke_writenode/handler.py b/python/tk_nuke_writenode/handler.py
index 1d1f21c..3ed2d89 100644
--- a/python/tk_nuke_writenode/handler.py
+++ b/python/tk_nuke_writenode/handler.py
@@ -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 main node graph (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())
@@ -1534,21 +1535,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}
{1}
".format(
"
".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,
)
- )
- + "
"
- )
- path_warning += "
"
- path_warning += (
- " "
- + "
".join(self.__wrap_text(str(e), 57))
- + "
"
+ ),
+ "
".join(self.__wrap_text(str(e), 57)),
)
if cached_path: