Ah, good call. In that case, it seems like your only option may be to grab
Viewer1's ViewerWindow object as a global variable when Nuke starts, and
then use a combination of <viewerNode>.setInput() and
<viewerWindow>.activateInput(). Unfortunately, this isn't a great solution,
and will probably prove unreliable in some situations.
Seems to me the Viewer node should have an exposed Python method that
returns its ViewerWindow object. I've put in a feature request for this to
be added.
-Nathan
-----Original Message-----
From: Gustaf Nilsson
Sent: Friday, October 12, 2012 7:46 AM
To: nuke-python@support.thefoundry.co.uk
Subject: Re: [Nuke-python] Re: switch to input in viewer
Hm, so..
looking in misc.py and at help(nuke.connectViewer) it looks like they
cant have a specific viewer assigned, only the viewer that had focus
last (?)
so, is there a way to focus on Viewer1 before connecting? maybe that
would be a workaround?
G
On Fri, Oct 12, 2012 at 12:14 PM, Gustaf Nilsson <gus...@laserpanda.com>
wrote:
Hi Marc
yeah, havent had time to look at it yet but i hope it will make sense of
it.
I only want the 1,2,3 keys to connect (and show) to viewer1 no matter
what other viewer is selected.
On Fri, Oct 12, 2012 at 11:09 AM, Marc Gutowski
<nuke-python-re...@thefoundry.co.uk> wrote:
nathan's hint should get you on track.
do you want to only use the Viewer "1" (not 2,3,...)
or do you want to lock the selected nodes to a viewer ?
_______________________________________________
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
--
■ ■ ■ ■ ■ ■ ■ ■ ■ ■
--
■ ■ ■ ■ ■ ■ ■ ■ ■ ■
_______________________________________________
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
_______________________________________________
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