def myViews():
viewer = nuke.activeViewer().node()['channels']
if viewer.value() == "rgba":
viewer.setValue("motion")
else:
viewer.setValue("rgba")
nuke.menu('Nuke').addCommand("Edit/Switch
view","myViews()","alt+v")
This would change between rgba and motion
On Fri, Feb 24, 2012, at 10:55, jaden wrote:
Hello,
my problem:
i have a multichannel exr and i need to constantly switch the
layers from matte layers to rgba
now i wanted to code something to set the layer in the viewer but
i cant find a way to "talk" to the viewer layer pulldown....
can you help me ?
jaden
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
Hugo Léveillé
TD Compositing, Vision Globale
[email protected]
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python