State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:273302|
# This creates 10 NoOp nodes with 10 Bool knobs each. # If the maxPanels is less than 10, say 3, only those last 3 nodes generated will be able to show up in the # properties. The first 7 will not be able to open in properties.import threadingdef reload_control_panel(node): """ Use this after a node.hideControlPanel() has been executed in the main thread or callback. Reloads the given nodes controls in the main thread. :param node: :return: """ def _show_thread(node): nuke.executeInMainThread(nuke.show, (node,)) nuke.executeInMainThread(nuke.updateUI, ()) t = threading.Thread(target=_show_thread, args=(node,)) t.start() t.join()for i in xrange(10): n = nuke.nodes.NoOp() for i in xrange(10): k = nuke.Boolean_Knob("bool_%s"%i, "bool %s"%i) k.setFlag(nuke.STARTLINE) n.hideControlPanel() n.addKnob(k) reload_control_panel(n)
5. This will create 10 NoOp nodes and only the last 3 will be displayed in the properties tabWe're sorry to hear that
Please tell us why