<?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: pre Multiplied Alpha script in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185565#M20822</link>
    <description>Thank you PiXeL_MoNKeY, I see the reason why I was going wrong now:&lt;BR /&gt;if dif_map.preMultAlpha == true do dif_map.preMultAlpha = false</description>
    <pubDate>Tue, 18 Jan 2011 16:51:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-18T16:51:39Z</dc:date>
    <item>
      <title>pre Multiplied Alpha script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185563#M20820</link>
      <description>I'm currently writing a script to identify if any objects in the scene with a standard material that has a diffuse (or opacity map) that have the preMultAlpha switched set to on and if so report it (so I know what material was changed) and then switch it off. Simple enough, only I can't seem to set the switches for preMultAlpha to off and I can't get the opacity map part to work either. (Which is most of the script actually...ahem) Can anyone please help me out. Thank you.</description>
      <pubDate>Tue, 18 Jan 2011 15:29:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185563#M20820</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-18T15:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: pre Multiplied Alpha script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185564#M20821</link>
      <description>This will disable the preMultAlpha switch for all bitmaps in the scene:&lt;PRE&gt;for preMult in (getClassInstances BitmapTexture) do (&lt;BR /&gt; preMult.preMultAlpha = false&lt;BR /&gt;)&lt;/PRE&gt;Personally I wouldn't dig through the materials, I would use what I did and change the BitMapTexture Objects. Without seeing your code (and possibly a sample scene) it is going to be hard to pinpoint what the problem is.&lt;BR /&gt;&lt;BR /&gt;-Eric</description>
      <pubDate>Tue, 18 Jan 2011 16:44:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185564#M20821</guid>
      <dc:creator>PiXeL_MoNKeY</dc:creator>
      <dc:date>2011-01-18T16:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: pre Multiplied Alpha script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185565#M20822</link>
      <description>Thank you PiXeL_MoNKeY, I see the reason why I was going wrong now:&lt;BR /&gt;if dif_map.preMultAlpha == true do dif_map.preMultAlpha = false</description>
      <pubDate>Tue, 18 Jan 2011 16:51:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185565#M20822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-18T16:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: pre Multiplied Alpha script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185566#M20823</link>
      <description>&lt;PRE&gt;&lt;BR /&gt;$.material.diffuseMap.preMultAlpha&lt;BR /&gt;$.material.opacityMap.preMultAlpha&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;Look up "StandardMaterial - Material" in the Maxscript Help Index.</description>
      <pubDate>Tue, 18 Jan 2011 16:52:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185566#M20823</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2011-01-18T16:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: pre Multiplied Alpha script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185567#M20824</link>
      <description>Eric beat me to it again &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Tue, 18 Jan 2011 16:53:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185567#M20824</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2011-01-18T16:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: pre Multiplied Alpha script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185568#M20825</link>
      <description>Just don't hold it against me Steve. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;-Eric</description>
      <pubDate>Tue, 18 Jan 2011 17:06:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185568#M20825</guid>
      <dc:creator>PiXeL_MoNKeY</dc:creator>
      <dc:date>2011-01-18T17:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: pre Multiplied Alpha script</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185569#M20826</link>
      <description>As if I'd do a thing like that &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;</description>
      <pubDate>Tue, 18 Jan 2011 20:36:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/pre-multiplied-alpha-script/m-p/4185569#M20826</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2011-01-18T20:36:23Z</dc:date>
    </item>
  </channel>
</rss>

