Thanks, Nathan!

It took me a while to structure the arguments after "nuke.createNode" - since I 
also wanted to stuff some Python code into the "beforeRender" field. I finally 
figured it out… 

nuke.createNode('Write', 'beforeRender "%s"' %'PYTHON_CODE_HERE')


8^)

Rich


Rich Bobo
Senior VFX Compositor

Mobile:  (248) 840-2665
Web:  http://richbobo.com/

"The greatest achievement of the human spirit is to live up to one's 
opportunities, and to make the most of one's resources."
- Vauvenargues



On May 23, 2012, at 3:24 PM, Nathan Rusch wrote:

> Use nuke.createNode instead of nuke.nodes.
>  
> -Nathan
> 
>  
> From: Rich Bobo
> Sent: Wednesday, May 23, 2012 12:20 PM
> To: Nuke-Users Mailing List List Postings
> Subject: [Nuke-users] create new node position via Python script
>  
> Hi,
>  
> I'm sure this has been covered before, but I can't find a reference...
>  
> When creating a new node via a Python script, how do I make it appear in the 
> same location that it would if I created it in the usual ways? In other 
> words, if I have a node selected, it is connected below it - or if I click on 
> an empty space, it appears there?  If it doesn't get connected to the 
> selected node, I would still be happy if it appeared where I clicked!
>  
> Thanks for any help,
> Rich
> 
> 
> Rich Bobo
> Senior VFX Compositor
> 
> Mobile:  (248) 840-2665
> Web:  http://richbobo.com/
> 
> 
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
> _______________________________________________
> Nuke-users mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to