<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Get Material By Name using MaxPlus in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-material-by-name-using-maxplus/m-p/10647191#M10783</link>
    <description>&lt;P&gt;still no such option?&lt;/P&gt;</description>
    <pubDate>Sat, 25 Sep 2021 17:59:51 GMT</pubDate>
    <dc:creator>loginarek</dc:creator>
    <dc:date>2021-09-25T17:59:51Z</dc:date>
    <item>
      <title>Get Material By Name using MaxPlus</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-material-by-name-using-maxplus/m-p/7938116#M10779</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I've looking around for a while and cannot figure out how, using MaxPlus in Python, I can :&lt;/P&gt;&lt;P&gt;- list materials that are in the material editor&lt;BR /&gt;- or get a material by name&lt;BR /&gt;&lt;BR /&gt;This has to work on Max 2016 so I cannot use pymxs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reading me !&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:34:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-material-by-name-using-maxplus/m-p/7938116#M10779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-17T13:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get Material By Name using MaxPlus</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-material-by-name-using-maxplus/m-p/7941654#M10780</link>
      <description>&lt;P&gt;Hi there, this will list the names of the materials in the editor:&lt;/P&gt;
&lt;PRE&gt;# Get all the material names in the Material Editor
import MaxPlus

num_mats = MaxPlus.MaterialEditor.GetNumSlots()
for i in range(0,num_mats):
	mtl = MaxPlus.MaterialManager.GetMtlSlot(i)
	print mtl.GetFullName()&lt;/PRE&gt;
&lt;P&gt;Hope that helps,&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:30:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-material-by-name-using-maxplus/m-p/7941654#M10780</guid>
      <dc:creator>drew_avis</dc:creator>
      <dc:date>2018-04-18T14:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get Material By Name using MaxPlus</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-material-by-name-using-maxplus/m-p/7941671#M10781</link>
      <description>&lt;P&gt;Thanks ! That does help a lot indeed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to be sure, there is no faster to find one specific material than going through the whole list ?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:34:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-material-by-name-using-maxplus/m-p/7941671#M10781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-18T14:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get Material By Name using MaxPlus</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-material-by-name-using-maxplus/m-p/7941769#M10782</link>
      <description>&lt;P&gt;I don't see any API for doing that, sorry.&amp;nbsp; Also note that this only works for the Material Editor, not the Slate Material Editor, which doesn't have any exposure to MaxPlus.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Drew&lt;/P&gt;</description>
      <pubDate>Wed, 18 Apr 2018 14:55:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-material-by-name-using-maxplus/m-p/7941769#M10782</guid>
      <dc:creator>drew_avis</dc:creator>
      <dc:date>2018-04-18T14:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Get Material By Name using MaxPlus</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-material-by-name-using-maxplus/m-p/10647191#M10783</link>
      <description>&lt;P&gt;still no such option?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Sep 2021 17:59:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/get-material-by-name-using-maxplus/m-p/10647191#M10783</guid>
      <dc:creator>loginarek</dc:creator>
      <dc:date>2021-09-25T17:59:51Z</dc:date>
    </item>
  </channel>
</rss>

