From a2c6a1b574c6514fc94fa1bf6ed90ced13491a38 Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Mon, 29 Jul 2019 09:20:06 +0200 Subject: [PATCH] fix(nuke): rename _tool to _node attribute --- pype/plugins/nuke/_load_unused/load_sequence.py | 6 +++--- pype/plugins/nuke/inventory/select_containers.py | 2 +- pype/plugins/nuke/inventory/set_tool_color.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pype/plugins/nuke/_load_unused/load_sequence.py b/pype/plugins/nuke/_load_unused/load_sequence.py index 695dd0b981..f3c54db6fb 100644 --- a/pype/plugins/nuke/_load_unused/load_sequence.py +++ b/pype/plugins/nuke/_load_unused/load_sequence.py @@ -196,8 +196,8 @@ class LoadSequence(api.Loader): ls_img_sequence, update_container ) - log.info("this i can see") - node = container["_tool"] + + node = container["_node"] # TODO: prepare also for other readers img/geo/camera assert node.Class() == "Reader", "Must be Reader" @@ -245,7 +245,7 @@ class LoadSequence(api.Loader): from avalon.nuke import viewer_update_and_undo_stop - node = container["_tool"] + node = container["_node"] assert node.Class() == "Reader", "Must be Reader" with viewer_update_and_undo_stop(): diff --git a/pype/plugins/nuke/inventory/select_containers.py b/pype/plugins/nuke/inventory/select_containers.py index 339e3a4992..b420f53431 100644 --- a/pype/plugins/nuke/inventory/select_containers.py +++ b/pype/plugins/nuke/inventory/select_containers.py @@ -11,7 +11,7 @@ class SelectContainers(api.InventoryAction): import avalon.nuke - nodes = [i["_tool"] for i in containers] + nodes = [i["_node"] for i in containers] with avalon.nuke.viewer_update_and_undo_stop(): # clear previous_selection diff --git a/pype/plugins/nuke/inventory/set_tool_color.py b/pype/plugins/nuke/inventory/set_tool_color.py index 725a3f3e74..7a81444c90 100644 --- a/pype/plugins/nuke/inventory/set_tool_color.py +++ b/pype/plugins/nuke/inventory/set_tool_color.py @@ -20,7 +20,7 @@ # # # Get tool color # first = containers[0] -# tool = first["_tool"] +# tool = first["_node"] # color = tool.TileColor # # if color is not None: @@ -40,7 +40,7 @@ # rgb_f_table = {"R": rgb_f[0], "G": rgb_f[1], "B": rgb_f[2]} # # # Update tool -# tool = container["_tool"] +# tool = container["_node"] # tool.TileColor = rgb_f_table # # result.append(container)