Posted By

martinB on 02/06/09


Tagged

class plugin instance


Versions (?)

Find missing plugin instances


 / Published in: Maxscript
 

Finds all scene elements that belong to missing plugins, original code by Larry Minton

  1. ( -- find all instances of 'standin' missing classes
  2.  
  3. standin_classes = #(Missing_Point4_Control,
  4. Missing_SoundObj,
  5. Missing_Shader_Plug_in,
  6. Missing_Float_Control,
  7. Missing_Shadow_Type,
  8. Missing_WSM_Object,
  9. Missing_TextureMap,
  10. Missing_GeomObject,
  11. Missing_UVGen,
  12. Missing_XYZGen,
  13. Missing_Camera,
  14. Missing_Texture_Output_Plug_in,
  15. Missing_Point3_Control,
  16. Missing_Renderer,
  17. Missing_Atmospheric,
  18. Missing_Matrix3_Control,
  19. Missing_Light,
  20. Missing_Helper,
  21. Missing_System,
  22. Missing_Render_Element_Plug_in,
  23. Missing_OSM,
  24. Missing_Position_Control,
  25. Missing_Shape,
  26. Missing_Texture_Bake_Element,
  27. Missing_RefTarget,
  28. Missing_Custom_Attribute_Plugin,
  29. Missing_Mtl,
  30. Missing_Radiosity,
  31. Missing_Rotation_Control,
  32. Missing_Exposure_Control,
  33. Missing_Render_Effect,
  34. Standin_for_missing_MultiPass_Camera_Effect_Plugin,
  35. Missing_RefMaker,
  36. Missing_Scale_Control,
  37. Missing_Morph_Control,
  38. Missing_WSM
  39. )
  40.  
  41. for c in standin_classes do
  42. (
  43. instances = getclassinstances c
  44. if instances.count != 0 do
  45. (
  46. format "class:%; instances:%\n" c instances
  47. for instance in instances do
  48. (
  49. deps = refs.dependents instance
  50. format "instance:%; dependents%\n" instance deps
  51. )
  52. )
  53. )
  54. ok
  55. )

Report this snippet  

You need to login to post a comment.