It might also be worth checking if there are gizmos inside groups with:

nuke.allNodes(recurseGroups=True)

/Simon




-------------------------------
Simon Björk
Compositor/TD

+46 (0)70-2859503
www.bjorkvisuals.com

2017-01-09 9:30 GMT+01:00 Ben Dickson <ben.dick...@rsp.com.au>:

> An alternative to checking for the gizmo_file knob is to see if the node
> is a subclass of nuke.Gizmos:
>
> gizmos = [x for x in nuke.allNodes() if isinstance(x, nuke.Gizmo)]
>
> On 07/01/17 10:32, Howard Jones wrote:
>
>> Is there a way to select all various Gizmos in a script.
>> for i in nuke.allNodes(‘Gizmo’):
>>
>> sort of thing
>>
>> Many thanks
>> *
>> Howard**Jones*
>> Visual Effects Supervisor
>> m: 07973 265624| e:how...@axis-vfx.com <mailto:how...@axis-vfx.com>| w:
>> www.axis-vfx.com <http://www.axis-vfx.com>
>>
>>
>> *
>> *
>>
>> *A X I S V F X*____
>>
>> The Bottle Yard Studios
>>
>> __
>>
>> Whitchurch Lane
>>
>> Bristol BS14 0BH
>>
>> axis-vfx.com <http://axis-vfx.com/>
>>
>>
>>
>> _______________________________________________
>> Nuke-python mailing list
>> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>
>>
> --
> ben dickson
> 2D TD | ben.dick...@rsp.com.au
> rising sun pictures | www.rsp.com.au
>
> _______________________________________________
> Nuke-python mailing list
> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to