That would be nice; turns out there's already a feature request in for that
one. If you email support, maybe they'll bump it up in priority. Cheers

On Fri, Jul 15, 2011 at 11:10 AM, Sebastian Elsner <[email protected]>wrote:

> **
> If you invoke the code via a python button knob, you can get the current
> group via thisGroup(). Else you might file a feature request for
> currentDAGGroup()...
>
>
> On 07/15/2011 11:55 AM, Patrick Nagle wrote:
>
> Thanks Sebastian,
>
> Sadly with or being won't work as I want to add nodes from an external
> program to which ever DAG your viewing and
> relying on the group that your viewing being selected on the root level
> isn't always going to work since
> you can have multiple nodes selected in the root dag or none....
>
> Patrick
> On Fri, Jul 15, 2011 at 10:26 AM, Sebastian Elsner 
> <[email protected]>wrote:
>
>>  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 [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
>>
>>
>
> _______________________________________________
> Nuke-python mailing [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
>
>
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to