fix(nuke): rename _tool to _node attribute

This commit is contained in:
Jakub Jezek 2019-07-29 09:20:06 +02:00
parent 8ad54a4e5b
commit a2c6a1b574
3 changed files with 6 additions and 6 deletions

View file

@ -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():

View file

@ -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

View file

@ -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)