Setting the position is easy enough, but finding out where the artist is in the 
dependency graph (so I can create the node in their view) is what I'm looking 
to do.

Brandon L. Harris


________________________________
From: nuke-python-boun...@support.thefoundry.co.uk 
[nuke-python-boun...@support.thefoundry.co.uk] on behalf of Luca Fiorentini 
[luca.fiorent...@gmail.com]
Sent: Monday, November 12, 2012 4:24 PM
To: Nuke Python discussion
Subject: Re: [Nuke-python] RE: Very Newbish Question

yourNode.knob('xpos').setValue(x) should help you (and you can probably also 
set the xpos and ypos on creation)

On Mon, Nov 12, 2012 at 11:13 PM, brandon harris 
<brandon.har...@reelfx.com<mailto:brandon.har...@reelfx.com>> wrote:
Also, this is using nuke.nodes to create my nodes.  I have wrapper utilities to 
create the nodes and I don't use nuke.createNode.

Brandon L. Harris
________________________________________
From: 
nuke-python-boun...@support.thefoundry.co.uk<mailto:nuke-python-boun...@support.thefoundry.co.uk>
 
[nuke-python-boun...@support.thefoundry.co.uk<mailto:nuke-python-boun...@support.thefoundry.co.uk>]
 on behalf of brandon harris 
[brandon.har...@reelfx.com<mailto:brandon.har...@reelfx.com>]
Sent: Monday, November 12, 2012 4:07 PM
To: 
nuke-python@support.thefoundry.co.uk<mailto:nuke-python@support.thefoundry.co.uk>
Subject: [Nuke-python] Very Newbish Question

I can't seem to find any information to help me work this problem out.  I have 
tools to generate nodes for artists, but I always just generate the nodes at 0, 
0 which can be a little flow breaking since the artist has to zoom out and pan 
over to get them.  In really large scripts this can be especially annoying.

Is there a way to find coordinates that exist in the artists current node graph 
position?  I can pull in pan, but setting the nodes x and y to those values 
doesn't work.  Anyway to accomplish this?

Brandon L. Harris
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk<mailto: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<mailto:Nuke-python@support.thefoundry.co.uk>,
 http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python



--
Luca Fiorentini - 3D Lighting Artist
My Showreel<http://www.vimeo.com/lucafiorentini/reel> - My 
blog<http://lucafiorentini.wordpress.com> - My 
Flickr<http://www.flickr.com/photos/lucafiorentini>

_______________________________________________
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