Hi,

I’m trying to close an activeViewer panel via Python.

— If I create a new Viewer...

NewViewer = nuke.createNode(‘Viewer’)

— I can delete the viewer node with…

nuke.delete(NewViewer)

— Which leaves me with an empty viewer panel…  (8^(


I know that, as a user, I can just close the panel and the viewer node is 
automatically deleted. I would like to do the same with Python. If I try to get 
the ViewerWindow object and delete it, Nuke crashes. How do I get the panel 
object and close it, that same way as the user does when clicking on the close 
[x] button? Or, is there a better way…?

Thanks for any help,


Rich



Rich Bobo
Senior VFX Compositor
Armstrong White
Email:  rich.b...@armstrong-white.com
http://armstrong-white.com/

Email:  richb...@mac.com
Mobile:  (248) 840-2665
Web:  http://richbobo.com/

"A pound of pluck is worth a ton of luck."
- Anonymous





_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to