title: 3Ds max find material by name
body: <p>You would think there would be... getMaterialByName() command... anyway.
  Seems like I have to loop over</p>
  <ul>
  <li>Loaded libraries</li>
  <li>Loaded node editor view</li>
  <li>The classic material editor</li>
  <li>And check each 1 of them for material...</li>
  </ul>
  <p>The problem I have is, I cant get a list of loaded libraries, nor I'm not sure if they will auto load on new scene (?).
  I want to find material by name and assign to geo.</p>
  <p>This &gt; <a href="https://help.autodesk.com/view/3DSMAX/2017/ENU/?guid=__files_GUID_D10CEFAB_E451_4A63_968E_01AEDEFCE928_htm" rel="nofollow noreferrer">https://help.autodesk.com/view/3DSMAX/2017/ENU/?guid=__files_GUID_D10CEFAB_E451_4A63_968E_01AEDEFCE928_htm</a>
  Is useless, I'm coding for max 2019.</p>
  <p>Any hints would be epic.</p>
  <p>Regards
  Dariusz</p>