Find missing plugin instances

Submitted by:Tim Kelly

Date added:25 June, 2011

Category:Maxscript

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

Tags: find plugin

Code Snippet:

( -- find all instances of 'standin' missing classes

standin_classes = #(Missing_Point4_Control,
Missing_SoundObj,
Missing_Shader_Plug_in,
Missing_Float_Control,
Missing_Shadow_Type,
Missing_WSM_Object,
Missing_TextureMap,
Missing_GeomObject,
Missing_UVGen,
Missing_XYZGen,
Missing_Camera,
Missing_Texture_Output_Plug_in,
Missing_Point3_Control,
Missing_Renderer,
Missing_Atmospheric,
Missing_Matrix3_Control,
Missing_Light,
Missing_Helper,
Missing_System,
Missing_Render_Element_Plug_in,
Missing_OSM,
Missing_Position_Control,
Missing_Shape,
Missing_Texture_Bake_Element,
Missing_RefTarget,
Missing_Custom_Attribute_Plugin,
Missing_Mtl,
Missing_Radiosity,
Missing_Rotation_Control,
Missing_Exposure_Control,
Missing_Render_Effect,
Standin_for_missing_MultiPass_Camera_Effect_Plugin,
Missing_RefMaker,
Missing_Scale_Control,
Missing_Morph_Control,
Missing_WSM
)

for c in standin_classes do
(
instances = getclassinstances c
if instances.count != 0 do
(
format "class:%; instances:%\n" c instances
for instance in instances do
(
deps = refs.dependents instance
format "instance:%; dependents%\n" instance deps
)
)
)
ok
)
 
 

Comments