nuke.selectedNodes

nuke.selectedNodes(filter) List.

Returns a list of all selected nodes in the current group. An attempt is made to return them in ‘useful’ order where inputs are done before the final node, so commands applied to this list go from top-down.

Parameters
  • filter – Optional class of Node. Instructs the algorithm to apply only to a specific class of nodes.

  • recursive – Optional boolean. If True, the algorithm will search recursively for selected nodes.

Returns

The list of selected nodes.