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

Commit

Permalink
Merge pull request #6211 from ynput/bugfix/OP-8164_expose-knobs-backw…
Browse files Browse the repository at this point in the history
…ard-compatibility-fix

Nuke: expose knobs backward compatibility fix - OP-8164
  • Loading branch information
jakubjezek001 authored Feb 9, 2024
2 parents 5c52626 + f17588b commit f60857e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openpype/hosts/nuke/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,9 @@ def _remove_old_knobs(node):


def exposed_write_knobs(settings, plugin_name, instance_node):
exposed_knobs = settings["nuke"]["create"][plugin_name]["exposed_knobs"]
exposed_knobs = settings["nuke"]["create"][plugin_name].get(
"exposed_knobs", []
)
if exposed_knobs:
instance_node.addKnob(nuke.Text_Knob('', 'Write Knobs'))
write_node = nuke.allNodes(group=instance_node, filter="Write")[0]
Expand Down

0 comments on commit f60857e

Please sign in to comment.