Nice one Ben !

Richard, you can get ride of node_list in the condition :

if (menu.name() not in node_list and
            menu.name() not in node_dic.values()):


make it :
if (menu.name() not in node_dic.values()):


I forgot to clean it from my code !


Cheers,
Justin


2014-08-07 4:14 GMT+01:00 Richard Bobo <richb...@mac.com>:

> Ben,
>
> Awesome!!
>
> Thanks,
> Rich
>
>
>
>
> On Aug 6, 2014, at 9:10 PM, Ben Dickson <ben.dick...@rsp.com.au> wrote:
>
> If you want a list of all node classes, you can use the nuke.plugins()
> function. For example, to find all gizmos plus plugins for the current
> platform:
>
> print nuke.plugins(nuke.ALL | nuke.NODIR, "*.gizmo") +
> nuke.plugins(nuke.ALL | nuke.NODIR, "*.%s" % nuke.env['PluginExtension'])
>
> This will find stuff not in the menu, like old versions of nodes for
> backwards compatibility (Tracker1..4, Camera and Camera2 etc)
>
> On 07/08/14 00:10, Richard Bobo wrote:
>
> Hi,
>
> Other than looking through the Nuke Reference Guide, is there a Pythonic
> way to list all of the types/classes of Nuke nodes? I'd like to search
> though the list of all Nuke node types for the existence of certain
> knobs, etc.
>
> Thanks,
> Rich
>
> Rich Bobo
> Senior VFX Compositor
> Email:  richb...@mac.com
> Mobile:  248.840.2665
> Web:  http://richbobo.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
>
>
_______________________________________________
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