Package nukescripts :: Module all_plugins
[hide private]
[frames] | no frames]

Source Code for Module nukescripts.all_plugins

 1  # Copyright (c) 2009 The Foundry Visionmongers Ltd.  All Rights Reserved. 
 2   
 3  import nuke 
 4   
 5  # This is for testing that all plugins were compiled correctly 
6 -def load_all_plugins():
7 tried = 0 8 failed = 0 9 p = nuke.plugins(nuke.ALL, "*."+nuke.PLUGIN_EXT) 10 for i in p: 11 tried += 1 12 print i 13 try: 14 try_load = nuke.load(i) 15 except: 16 print i, "failed to load." 17 failed += 1 18 if failed > 0: 19 print failed, "of", tried, "plugin(s) total did not load" 20 else: 21 print "All available binary plugins (",tried,") successfully loaded"
22