If you can't or don't want to use at least one createNode() call, you're
pretty much S.O.L. for now. As far as I know, there is currently no way to
grab the DAG center or last user position, though I have a feature request
in for the latter.
I currently use a dead-simple (if not particularly elegant) workaround for
this when I absolutely need the user DAG position. It's just a function that
creates a Dot, grabs its position, deletes it, and returns the coordinates.
-Nathan
-----Original Message-----
From: brandon harris
Sent: Monday, November 12, 2012 2:07 PM
To: 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, 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