title: How do I access materials in maxscript without material editor?
body: <p>There appear to be two options to access materials in maxscript, through the compact Material Editor and the Slate material editor. The problems is that a scrip that attempts to access/modify materials via the compact editor (<code>currentMaterialLibrary</code> , <code>sceneMaterials</code>, <code>meditMaterials</code>) fail if max is set to use the Slate editor and vice versa.</p>
  
  <p>Is there a way to access the materials directly in maxscript, irrespective of which editor is used? </p>
  
  <p>Once I have the material, I would like to:</p>
  
  <ol>
  <li>Purge unassigned materials from the scene so that missing textures on unused materials don't throw error's on scene open/network rendering.</li>
  <li>Check certain material properties (i.e. Glossy subdivision) so purchased models with "unnecessarily high values" don't ruin render times.</li>
  </ol>