Merge pull request #5051 from Zipodod/bugfix/napi_use_inpanel

This commit is contained in:
Milan Kolar 2023-07-07 15:11:35 +02:00 committed by GitHub
commit 57bc75f2bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 51 additions and 46 deletions

View file

@ -66,8 +66,6 @@ class AlembicCameraLoader(load.LoaderPlugin):
object_name, file),
inpanel=False
)
# hide property panel
camera_node.hideControlPanel()
camera_node.forceValidate()
camera_node["frame_rate"].setValue(float(fps))

View file

@ -144,10 +144,9 @@ class LoadClip(plugin.NukeLoader):
# Create the Loader with the filename path set
read_node = nuke.createNode(
"Read",
"name {}".format(read_name))
# hide property panel
read_node.hideControlPanel()
"name {}".format(read_name),
inpanel=False
)
# to avoid multiple undo steps for rest of process
# we will switch off undo-ing

View file

@ -88,10 +88,9 @@ class LoadEffects(load.LoaderPlugin):
GN = nuke.createNode(
"Group",
"name {}_1".format(object_name))
# hide property panel
GN.hideControlPanel()
"name {}_1".format(object_name),
inpanel=False
)
# adding content to the group node
with GN:

View file

@ -89,10 +89,9 @@ class LoadEffectsInputProcess(load.LoaderPlugin):
GN = nuke.createNode(
"Group",
"name {}_1".format(object_name))
# hide property panel
GN.hideControlPanel()
"name {}_1".format(object_name),
inpanel=False
)
# adding content to the group node
with GN:

View file

@ -119,10 +119,9 @@ class LoadImage(load.LoaderPlugin):
with viewer_update_and_undo_stop():
r = nuke.createNode(
"Read",
"name {}".format(read_name))
# hide property panel
r.hideControlPanel()
"name {}".format(read_name),
inpanel=False
)
r["file"].setValue(file)

View file

@ -65,9 +65,6 @@ class AlembicModelLoader(load.LoaderPlugin):
inpanel=False
)
# hide property panel
model_node.hideControlPanel()
model_node.forceValidate()
# Ensure all items are imported and selected.

View file

@ -70,10 +70,9 @@ class LinkAsGroup(load.LoaderPlugin):
# P = nuke.nodes.LiveGroup("file {}".format(file))
P = nuke.createNode(
"Precomp",
"file {}".format(file))
# hide property panel
P.hideControlPanel()
"file {}".format(file),
inpanel=False
)
# Set colorspace defined in version data
colorspace = context["version"]["data"].get("colorspace", None)