node.fullName():

self.fullName() -> str\n
Get the name of this node and any groups enclosing it in 'group.group.name'
form.
@return: The fully-qualified name of this node, as a string.


On 26 June 2015 at 14:26, Fredrik Averpil <[email protected]> wrote:

> That's excellent, thanks Jake.
>
> Can I get a "long" node name somehow?
> Like for example, if I loop over nuke.allNodes(recurseGroups=True) I may
> get Read1 several times, since Read1 may exist inside of groups.
>
> Is it possible to retrieve the names in such a fashion that the node name
> is Group1.Read1 or something?
>
> Cheers,
> Fredrik
>
>
> On Fri, Jun 26, 2015 at 3:09 PM Jake Richards <[email protected]>
> wrote:
>
>> This should find all the nodes, even inside groups:
>>
>> nuke.allNodes(recurseGroups=True)
>>
>>
>> jake
>>
>> ------------------------------
>>
>> *From: *"Fredrik Averpil" <[email protected]>
>> *To: *"Nuke user discussion" <[email protected]>
>> *Sent: *Friday, June 26, 2015 9:04:54 AM
>> *Subject: *[Nuke-users] How to get all nodes in script (including
>> groups)?
>>
>>
>>
>> Hey,
>>
>> I just noticed that nuke.root().nodes() does not return nodes within a
>> group. What's the most reliable approach to do this?
>>
>> I'm doing this at the moment:
>>
>> all_nodes = nuke.root().nodes()for node in all_nodes:
>>     if node.Class() == 'Group':
>>         all_nodes = all_nodes + node.nodes()
>>
>> ​
>>
>> I'm on Nuke 9.0v6.
>>
>> Regards,
>> Fredrik
>>
>>
>> _______________________________________________
>> 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
>



-- 
Frank Harrison
Senior Nuke Software Engineer
The Foundry
Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906
Web: www.thefoundry.co.uk
Email: [email protected]
_______________________________________________
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