1
2
3 import os.path
4 import nuke
5
6
7
9 list = []
10 if nuke.env['ple']:
11 plugins = nuke.plugins(nuke.ALL | nuke.NODIR, "*."+nuke.PLUGIN_EXT, "*.ofx.bundle", "*.gizmo", "*.gzple")
12 else:
13 plugins = nuke.plugins(nuke.ALL | nuke.NODIR, "*."+nuke.PLUGIN_EXT, "*.ofx.bundle", "*.gizmo")
14 for i in plugins:
15 (root, ext) = os.path.splitext(i)
16 (root, ext) = os.path.splitext(root)
17
18
19 if root is None or len(root) == 0:
20 continue
21 if not root[0] == '@':
22 list.append(root)
23 n = nuke.menu("Nodes").addMenu("Other/"+menuname)
24 list.sort()
25 for i in list:
26 s = i.upper()
27 p = n.addMenu(s[0])
28 p.addCommand(i, "nuke.createNode('"+i+"')")
29