//----------------------------------------- // Apply SG_AmbOcc_Exp plugin to all surfaces in the scene // By Richard Nichols (http://www.richardnichols.net/) 6/11/2006 @warnings @name RemoveSGAmbOcc_Exp generic { scene = Scene(); mesh = Mesh(); while (mesh) { surface = Surface(mesh); surfind = 1; while (surfind <= surface.size()) { cursurf = surface[surfind]; str = string("Surf_SetSurf "+cursurf+" "+mesh.id); CommandInput(str); str = string("Surf_RemShader SG_AmbOcc_Exp"); CommandInput(str); surfind = surfind+1; } mesh = mesh.next(); } info("Applied to all surfaces OK"); }