Here is a fragment of a code I used a while ago. It was only checking gizmos, and was reading the info inside gizmo files that you may not need, but it might give you an idea to adapt to your problem:
import re def gizmoCheck(): gizmos = nuke.plugins(0, '*.gizmo') for gizmoPath in gizmos: gizmoLoaded = False gizmoFile = open(gizmoPath, 'r') gizmoTxt = ''.join(gizmoFile) gizmoFile.close() gizmoName = re.split('[\\\/]', gizmoPath)[-1] gizmoName = re.sub('\.gizmo', '', gizmoName) print 'Checking '+gizmoName for node in nuke.allNodes(): if node.Class() == gizmoName: gizmoLoaded = True ..... There might be a much better way to do this, I'm still just messing with code until I get my stuff to work. On Thu, Feb 27, 2014 at 11:21 AM, Den Serras <denserras...@gmail.com> wrote: > Anyone have a good trick for getting a list of all non-Nuke standard > plugins used in a comp? Having trouble getting nuke.plugins to work without > weird errors. > > Thanks! > Den > > _______________________________________________ > 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