The class for a gizmo is it's own name. So it already does what you want. This will only be different if the gizmo is actually a group saved with the .gizmo extension. If that's the case you will have to filter nodes by name instead of it's class that should be "Group".
Hope it helps. cheers, diogo On Mon, Sep 3, 2012 at 7:28 AM, sh4dow <[email protected]>wrote: > ** > Can that be done? > > The reason I want to do this: I would like to add a callback to one of my > gizmos but this of course only works when I can specify the nodeclass in > addUpdateUI(). > > Or, I suppose, I could add a callback to all nodes and filter myself based > on the node names but a) that hardly seems efficient and b) isn't reliable, > since the user might change the node name to whatever. > > _______________________________________________ > 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
