Re: [Nuke-python] switch to input in viewer

2012-10-11 Thread Nathan Rusch
From: Gustaf Nilsson Sent: Thursday, October 11, 2012 3:23 AM To: nuke-python@support.thefoundry.co.uk Subject: [Nuke-python] switch to input in viewer ohai i want the 1/2/3/4/5... keys to only connect the selected node to Viewer1, not any other viewers, so i wrote this: nuke.menu('Nuke&#x

[Nuke-python] switch to input in viewer

2012-10-11 Thread Gustaf Nilsson
ohai i want the 1/2/3/4/5... keys to only connect the selected node to Viewer1, not any other viewers, so i wrote this: nuke.menu('Nuke').addCommand('Gusty/Connect to Viewer1 - 1', 'nuke.toNode("Viewer1").setInput(0, nuke.selectedNode()) and then i do this for all the numbers. it works, but th