don't you mean

x=nuke.selectedNode()
x['xpos'].setValue(0)
x['ypos'].setValue(0)

 to move after creation?



________________________________
From: Ean Carr <[email protected]>
To: Nuke Python discussion <[email protected]>
Sent: Fri, 4 March, 2011 15:31:58
Subject: Re: [Nuke-python] moving nodes after creation

x = nuke.nodes.Read()
x['xpos'].setValue(0)
x['ypos'].setValue(0)

...moves the node x to 0,0

-E


On Fri, Mar 4, 2011 at 2:23 PM, Mike Donovan <[email protected]> 
wrote:

he guys ... is it possible to move nodes after they have been created .. i know 
how to position them on creation using their coordinates. But I want to align 
certain nodes after their creation based on a given criteria.
> 
>pseudo code ex:
>                
>                x = create readnode @ 12,1,0,5
>                y = create readnode @ 100,0 ,0,100
> 
>                x.ypos = y.ypos
> 
>thanks
> 
>M
>________________________________________________________________________
>This e-mail has been scanned for all viruses by Star. The
>service is powered by MessageLabs. For more information on a proactive
>anti-virus service working around the clock, around the globe, visit:
>http://www.star.net.uk
>________________________________________________________________________
>
>_______________________________________________
>Nuke-python mailing list
>[email protected]
>http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
>
_______________________________________________
Nuke-python mailing list
[email protected]
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to