<?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: Retrieve the preview of material(swatch thumbnail) in maxscript in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12313272#M1850</link>
    <description>&lt;P&gt;&lt;A href="https://forums.cgsociety.org/t/grabbing-the-material-preview/1667482/33" target="_blank" rel="noopener"&gt;Check this thread.&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 06:17:44 GMT</pubDate>
    <dc:creator>miauuuu</dc:creator>
    <dc:date>2023-10-18T06:17:44Z</dc:date>
    <item>
      <title>Retrieve the preview of material(swatch thumbnail) in maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12311296#M1849</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I am looking to retrieve the preview of material (swatch thumbnail) in the form of image (jpg,jpeg,png) from the material editor in maxscript. I am using 3ds max.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Oct 2023 12:01:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12311296#M1849</guid>
      <dc:creator>Veena_Revankar</dc:creator>
      <dc:date>2023-10-17T12:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the preview of material(swatch thumbnail) in maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12313272#M1850</link>
      <description>&lt;P&gt;&lt;A href="https://forums.cgsociety.org/t/grabbing-the-material-preview/1667482/33" target="_blank" rel="noopener"&gt;Check this thread.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 06:17:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12313272#M1850</guid>
      <dc:creator>miauuuu</dc:creator>
      <dc:date>2023-10-18T06:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the preview of material(swatch thumbnail) in maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12313791#M1851</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1282940"&gt;@miauuuu&lt;/a&gt;&amp;nbsp;. The solution is working but how do we get material index for only the materials used in the object ?&lt;/P&gt;&lt;P&gt;Please do help.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 09:27:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12313791#M1851</guid>
      <dc:creator>Veena_Revankar</dc:creator>
      <dc:date>2023-10-18T09:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the preview of material(swatch thumbnail) in maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12313852#M1852</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Store the material of material slot 24 to a variable:&amp;nbsp; &lt;STRONG&gt;matSlot24 =&amp;nbsp;meditMaterials[24]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Get the material of your object and add it to material slot 24: &lt;STRONG&gt;meditMaterials[24] = selection[1].material&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The material index is the index of the&amp;nbsp; slots of the Compact Material Editor, so when you use any of the functions from the cgtalk thread, use 23 as material index(because the material index is 0 based).&lt;/P&gt;&lt;P&gt;After you get the material preview use &lt;STRONG&gt;meditMaterials[24] = matSlot24&lt;/STRONG&gt; to put back the original material, applied to material slot 24.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 09:45:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12313852#M1852</guid>
      <dc:creator>miauuuu</dc:creator>
      <dc:date>2023-10-18T09:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the preview of material(swatch thumbnail) in maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12313926#M1853</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks&amp;nbsp;a lot&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1282940" target="_blank"&gt;@miauuuu. It is working.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 10:07:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12313926#M1853</guid>
      <dc:creator>Veena_Revankar</dc:creator>
      <dc:date>2023-10-18T10:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the preview of material(swatch thumbnail) in maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12314049#M1854</link>
      <description>&lt;P&gt;Currently the material preview we can get is of very low quality that is 24x24. Is it possible to get it of high resolution ?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 11:47:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12314049#M1854</guid>
      <dc:creator>Veena_Revankar</dc:creator>
      <dc:date>2023-10-18T11:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the preview of material(swatch thumbnail) in maxscript</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12314821#M1855</link>
      <description>&lt;P&gt;I have changed the size. Now I could get material preview of good quality.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 16:19:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/retrieve-the-preview-of-material-swatch-thumbnail-in-maxscript/m-p/12314821#M1855</guid>
      <dc:creator>Veena_Revankar</dc:creator>
      <dc:date>2023-10-18T16:19:09Z</dc:date>
    </item>
  </channel>
</rss>

