There shouldn't be. I would imagine the __enter__ and __exit__ methods of group nodes are just calling self.begin and self.end respectively.
-Nathan From: [email protected] Subject: Re: [Nuke-python] Creating nodes & group? Date: Tue, 24 May 2011 00:14:05 +0200 To: [email protected] Is there any difference between using:g = nuke.toNode('mygroup') g.begin() # Do stuff inside your group, e.g. nuke.nodes.MyNode() g.end() and: g = nuke.toNode('mygroup') with g: # Do stuff inside your group, e.g. nuke.nodes.MyNode() ? thanksJRAB On May 23, 2011, at 8:12 PM, John Vanderbeck wrote:Thanks for the replies gang Sent from my iPhone On May 22, 2011, at 11:33 AM, Ean Carr <[email protected]> wrote: Hey John, You could do: g = nuke.toNode('mygroup')g.begin()# Do stuff inside your group, e.g. nuke.nodes.MyNode()g.end() -E On Fri, May 20, 2011 at 12:19 PM, John Vanderbeck <[email protected]> wrote: Hello again all, I'm running into an annoying problem here. I have a script that is creating a bunch of nodes for the user, in many cases hundreds of node, and I want to create all the nodes and then afterwards place them all into a group for the user so it isn't such a mess. All the node creation happens in a separate thread/progresstask, which might be part of my problems. nuke.makeGroup() states that it will add the selected nodes to a new group, but every time I run it, with nodes selected or not, I end up with an empty group instead of the selected nodes in that group. Can anyone share a snippet of code showing how to add nodes to an empty group after the group has already been created? I couldn't find anything in the docs, but there must be a way. - John Vanderbeck - http://www.johnvanderbeck.com _______________________________________________ Nuke-python mailing list [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 _______________________________________________ Nuke-python mailing list [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
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
