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

Nuke: loaded nodes set to first tab #4114

Merged
merged 2 commits into from
Nov 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions openpype/hosts/nuke/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ def containerise(node,

set_avalon_knob_data(node, data)

# set tab to first native
node.setTab(0)

return node


Expand Down
3 changes: 3 additions & 0 deletions openpype/hosts/nuke/plugins/load/load_camera_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ def load(self, context, name, namespace, data):
object_name, file),
inpanel=False
)
# hide property panel
camera_node.hideControlPanel()

camera_node.forceValidate()
camera_node["frame_rate"].setValue(float(fps))

Expand Down
3 changes: 3 additions & 0 deletions openpype/hosts/nuke/plugins/load/load_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ def load(self, context, name, namespace, options):
"Read",
"name {}".format(read_name))

# hide property panel
read_node.hideControlPanel()

# to avoid multiple undo steps for rest of process
# we will switch off undo-ing
with viewer_update_and_undo_stop():
Expand Down
3 changes: 3 additions & 0 deletions openpype/hosts/nuke/plugins/load/load_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def load(self, context, name, namespace, data):
"Group",
"name {}_1".format(object_name))

# hide property panel
GN.hideControlPanel()

# adding content to the group node
with GN:
pre_node = nuke.createNode("Input")
Expand Down
3 changes: 3 additions & 0 deletions openpype/hosts/nuke/plugins/load/load_effects_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ def load(self, context, name, namespace, data):
"Group",
"name {}_1".format(object_name))

# hide property panel
GN.hideControlPanel()

# adding content to the group node
with GN:
pre_node = nuke.createNode("Input")
Expand Down
4 changes: 4 additions & 0 deletions openpype/hosts/nuke/plugins/load/load_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ def load(self, context, name, namespace, options):
r = nuke.createNode(
"Read",
"name {}".format(read_name))

# hide property panel
r.hideControlPanel()

r["file"].setValue(file)

# Set colorspace defined in version data
Expand Down
4 changes: 4 additions & 0 deletions openpype/hosts/nuke/plugins/load/load_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def load(self, context, name, namespace, data):
object_name, file),
inpanel=False
)

# hide property panel
model_node.hideControlPanel()

model_node.forceValidate()

# Ensure all items are imported and selected.
Expand Down
3 changes: 3 additions & 0 deletions openpype/hosts/nuke/plugins/load/load_script_precomp.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def load(self, context, name, namespace, data):
"Precomp",
"file {}".format(file))

# hide property panel
P.hideControlPanel()

# Set colorspace defined in version data
colorspace = context["version"]["data"].get("colorspace", None)
self.log.info("colorspace: {}\n".format(colorspace))
Expand Down