nuke.nodesSelected

nuke.nodesSelected() → None

returns true if any nodes are currently selected