nukescripts.connect_selected_to_viewer

nukescripts.connect_selected_to_viewer(inputIndex)[source]

Connects the selected node to the given viewer input index, ignoring errors if no node is selected.