You can use the "with" statement.
from __future__ import with_statement
with groupNode:
nuke.createNode("Blur")
AFAIK there is no other way than begin() or with.
On 07/15/2011 11:19 AM, Patrick Nagle wrote:
What I am wondering is: why is it different to use a menu item created
in menu.py will add a node to the correct group that your currently
viewing rather than the root DAG?
try this:
1. create a group node
2. go into the newly created group
3. create any node in that group (blur for instance)
4. try to use nuke.nodes.Blur() and nuke.createNode('Blur') to
create a new blur node in that group
Does anyone know a way to create nodes in a group without using
group.begin()?
Is this even possible?
Patrick
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
--
Sebastian Elsner - Pipeline TD - r i s e | fx
t: +49 30 201 803 00 [email protected]
c: +49 175 336 5739 7548 www.risefx.com
r i s e | fx GmbH
Schlesische Strasse 28, Aufgang B 10997 Berlin
Richard-Byrd-Strasse 12, 50829 Cologne
Geschaeftsfuehrer: Sven Pannicke, Robert Pinnow
Handelsregister Berlin HRB 106667 B
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python