Yes, that is the correct way to do it (and is identical to the first bit of code Brandon posted)
If it's not working, the problem lies elsewhere Unrelated to this problem, you probably want to use nuke.nodes.Camera2 instead of nuke.nodes.Camera On 05/11/13 09:50, John Vanderbeck wrote: > with nuke.root(): > create node > > > > - John Vanderbeck > - http://www.johnvanderbeck.com > > > On Mon, Nov 4, 2013 at 3:18 PM, Brandon Harris > <[email protected] <mailto:[email protected]>> wrote: > > This is a resend because ctrl+enter gets me all the time. > > I'm creating cameras, but they always seem to get created inside of > a group node that is on the top level of my script. > > I've tried > > root = nuke.root() > with root: > nuke.nodes.Camera() > > root.begin() > nuke.nodes.Camera() > root.end() > > nuke.createNode('Camera') > > Nothing seems to work. Is there a way to force a node to be created > at a particular level or a way other than node.begin() to set what > the current 'root' level is? > > Thanks! > > > > > cheers, > Brandon L. Harris > www.freebirdsmovie.com <http://www.freebirdsmovie.com> > > _______________________________________________ > Nuke-python mailing list > [email protected] > <mailto:[email protected]>, > http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > > > > _______________________________________________ > Nuke-python mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > -- ben dickson 2D TD | [email protected] rising sun pictures | www.rsp.com.au _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
