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.

Returns:

The list of selected nodes.