nukescripts.createNodeLocal

nukescripts.createNodeLocal(node, knobs='', inpanel=True)[source]

Create a node within the context of the last hit group.

Wrapper method that calls nuke.createNode with the context of the last hit group. This allows users to click into an open group view and create nodes. The default last hit group is the DAG window. Shares the same parameters as nuke.createNode:

Parameters
  • node (str) – Name of node class to create (e.g. ‘Blur’).

  • knobs (str, optional) – TCL list of knob name value pairs.

  • inpanel (bool, optional) – Open the control bin (only applies when the GUI is running), defaults to True.

Returns

The node created.

Return type

nuke.Node