<?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: Converting Autodesk materials in 3ds Max Programming Forum</title>
    <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291765#M17080</link>
    <description>I have got this so far just basic changes from autodesk to vray materials but masonry_CMU, Plastic_vinyl Solid_glass and Wall_paint do not get converted do not know why? It just says cannot assign undefined to material Editor Slots could this be because of the Underscore as name&lt;BR /&gt;&lt;PRE&gt;fn convert_Mtl_to_vray mtl =&lt;BR /&gt; ( &lt;BR /&gt;     if NOT isKindOf mtl Autodesk_Material then mtl&lt;BR /&gt;     else case (mtl.DefinitionID as name) of&lt;BR /&gt;     (&lt;BR /&gt;         #Ceramic : vraymtl  Diffuse:(color 200 200 200)  Reflection:(color 200 200 200) reflection_glossiness: 0.85 reflection_subdivs: 16 reflection_fresnel: on reflection_lockIOR:off reflection_ior: 1.8&lt;BR /&gt;         #Concrete : vraymtl Diffuse:mtl.Concrete_Color&lt;BR /&gt;         #Generic : vraymtl Diffuse:mtl.Generic_Color &lt;BR /&gt;         #Glazing : vraymtl Diffuse:(color 0 0 0) reflection:(color 255 255 255) refraction:(color 255 255 255) reflection_fresnel: on refraction_ior: 1.52 refraction_fogColor: (color 234 252 247) refraction_fogMult: 5 option_traceReflection:on option_doubleSided:on option_reflectOnBack: on&lt;BR /&gt;         #Hardwood : vraymtl textmap_diffuse:mtl.wood_image&lt;BR /&gt;         #Masonry_CMU : vraymtl Diffuse:mtl.Masonry_Color&lt;BR /&gt;         #Metal : vraymtl Diffuse:(color 156 156 156)&lt;BR /&gt;         #MetallicPaint : vraymtl Diffuse:mtl.Metallic_Paint_Color&lt;BR /&gt;         #Mirror : vraymtl Diffuse:mtl.Mirror_Tint_Color&lt;BR /&gt;         #Plastic_Vinyl : vraymtl Diffuse:(color 177 177 177)&lt;BR /&gt;         #Solid_glass : vraymtl Diffuse:(color 0 0 0) reflection:(color 255 255 255) refraction:(color 255 255 255) reflection_fresnel: on refraction_ior: 1.52 refraction_fogColor: (color 234 252 247) refraction_fogMult: 5 option_traceReflection:on option_doubleSided:on option_reflectOnBack: on&lt;BR /&gt;         #Stone : vraymtl textmap_diffuse:mtl.Stone_Image&lt;BR /&gt;         #Wall_Paint : vraymtl Diffuse:mtl.Wall_Paint_Color&lt;BR /&gt;         #water : vraymtl Diffuse:(color 177 211 173) reflection:(color 255 255 255) refraction:(color 255 255 255) reflection_fresnel: on refraction_ior: 1.1&lt;BR /&gt; )&lt;BR /&gt; )&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;origMtl = meditMaterials -- get Active Material Slot&lt;BR /&gt;stMtl = convert_Mtl_to_vray origMtl -- create a new Autodesk material out of this one&lt;BR /&gt;stMtl.name = origMtl.name&lt;BR /&gt;newmat = stMtl -- assing it to newmat&lt;BR /&gt; newmat.name=stMtl.name&lt;BR /&gt;setMeditMaterial (medit.GetActiveMtlSlot()) newmat -- put the material to the new slot&lt;/PRE&gt;</description>
    <pubDate>Fri, 31 May 2013 04:34:46 GMT</pubDate>
    <dc:creator>hanselmoniz</dc:creator>
    <dc:date>2013-05-31T04:34:46Z</dc:date>
    <item>
      <title>Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291742#M17057</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt; Please could you help out to change autodesk materials to vray materials. So far I've got. I would however have to grab the properties of individual autodesk materials and set them to vray... i do not know if I'm going in the right direction as i am new to maxscript&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;for varMat in scenematerials do&lt;BR /&gt;( if classof varMat == Autodesk_Material then&lt;BR /&gt;if varMat = Autodesk_ceramic then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_concrete then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_generic then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_glazing then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_wood then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_masonry then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_metal then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_metallic_paint then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_mirror then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_plastic then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_solid_glass then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_stone then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_wall_paint then&lt;BR /&gt;(varMat = vraymtl ())&lt;BR /&gt;if varMat = Autodesk_water then&lt;BR /&gt;( varMat = vraymtl ())&lt;BR /&gt; &lt;BR /&gt;)&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 May 2013 09:15:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291742#M17057</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-22T09:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291743#M17058</link>
      <description>There is already &lt;A href="http://www.scriptspot.com/3ds-max/scripts/multyconvertor" target="_blank"&gt;http://www.scriptspot.com/3ds-max/scripts/multyconvertor&lt;/A&gt; which should handle that. If you want to parse the material manually, note that each autodesk_material allows you to get a generic material using .ConvertToGeneric. Btw. for finding one possible value out of a list, case expression is better than if expression - it would also prevent you from the classic mistake of using assigment to a variable instead (single equal sign) of checking for equality (double equal sign).</description>
      <pubDate>Wed, 22 May 2013 10:42:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291743#M17058</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2013-05-22T10:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291744#M17059</link>
      <description>Thanks for your help. I tried to use Multyconverter but it just converts autodesk materials to vray materials and does not take the parameters... i think there is some file you have to edit in order to get the script working well...but im a noob at that...</description>
      <pubDate>Wed, 22 May 2013 11:22:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291744#M17059</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-22T11:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291745#M17060</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;I'm trying to access the code ConvertToGeneric through script but i do not know how to do it... can you post a code to convert all autodesk materials to autodesk generic materials.. forgive my ignorance&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 22 May 2013 12:04:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291745#M17060</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-22T12:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291746#M17061</link>
      <description>Hint. Quote tags are for quoting what others have written, not for posting your own comments.</description>
      <pubDate>Wed, 22 May 2013 12:23:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291746#M17061</guid>
      <dc:creator>Steve_Curley</dc:creator>
      <dc:date>2013-05-22T12:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291747#M17062</link>
      <description>&lt;PRE&gt;for Autodeskmat in scenematerials do&lt;BR /&gt;( if classof  Autodeskmat == Autodesk_Material then&lt;BR /&gt;Autogeneric =  Autodeskmat.ConvertToGeneric&lt;BR /&gt;Autogeneric.name =  Autodeskmat.name&lt;BR /&gt;-- Replace the original material with the new Autodesk material&lt;BR /&gt;replaceInstances Autodeskmat Autogeneric)&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 May 2013 12:29:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291747#M17062</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-22T12:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291748#M17063</link>
      <description>I have to exclude autodesk_generic materials though. I guess it is best done by hasproperty = convertToGeneric</description>
      <pubDate>Wed, 22 May 2013 12:45:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291748#M17063</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-22T12:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291749#M17064</link>
      <description>i do not know why this does not work.. Please can you help&lt;BR /&gt;&lt;PRE&gt;for Autodeskmat in scenematerials do&lt;BR /&gt;( if classof  Autodeskmat == Autodesk_Material then&lt;BR /&gt; (if hasProperty Autodeskmat "ConvertToGeneric" then&lt;BR /&gt; () else&lt;BR /&gt; Autogeneric =  Autodeskmat.ConvertToGeneric&lt;BR /&gt;Autogeneric.name =  Autodeskmat.name&lt;BR /&gt;-- Replace the original material with the new Autodesk material&lt;BR /&gt;replaceInstances Autodeskmat Autogeneric)&lt;BR /&gt;)&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 May 2013 12:54:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291749#M17064</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-22T12:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291750#M17065</link>
      <description>You probably wanted to use isProperty here but eitherway both generic autodesk material and all the different autodesk material types have the ConvertToGeneric property - and it shouldn't be a problem, if you only replace a given set of materials. Skip the check - and better don't work on the live sceneMaterials collection, collect the materials to an array (or use something like  sceneMats = join #() sceneMaterials).</description>
      <pubDate>Wed, 22 May 2013 13:18:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291750#M17065</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2013-05-22T13:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291751#M17066</link>
      <description>so this should work fine isnt it. But when i run it on autodesk generic and other autodesk materials it does not convert other autodesk materials&lt;BR /&gt;&lt;PRE&gt;for Autodeskmat in scenematerials do&lt;BR /&gt;( if classof  Autodeskmat == Autodesk_Material then&lt;BR /&gt;Autogeneric =  Autodeskmat.ConvertToGeneric&lt;BR /&gt;Autogeneric.name =  Autodeskmat.name&lt;BR /&gt;-- Replace the original material with the new Autodesk material&lt;BR /&gt;replaceInstances Autodeskmat Autogeneric)&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 May 2013 15:39:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291751#M17066</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-22T15:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291752#M17067</link>
      <description>Only if the class of all sceneMaterials is Autodesk_Material, otherwise it won't work - your Autogeneric variable would be undefined (just put everything after 'then' in a pair of braces to correct it).</description>
      <pubDate>Wed, 22 May 2013 16:07:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291752#M17067</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2013-05-22T16:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291753#M17068</link>
      <description>Actually this code runs fine the first time I open max but if I have to run it again. It does not do anything. Sorry I am a total noob at this..&lt;BR /&gt;&lt;PRE&gt;for Autodeskmat in scenematerials do&lt;BR /&gt; ( if classof  Autodeskmat == Autodesk_Material then&lt;BR /&gt; (Autogeneric =  Autodeskmat.ConvertToGeneric&lt;BR /&gt; Autogeneric.name =  Autodeskmat.name&lt;BR /&gt;-- Replace the original material with the new Autodesk material&lt;BR /&gt; replaceInstances Autodeskmat Autogeneric)&lt;BR /&gt;)&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 May 2013 04:50:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291753#M17068</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-23T04:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291754#M17069</link>
      <description>The only thing there that might be causing trouble is that scenematerials collection does not update automatically, so for example after importing some geometry with materials assigned it will be still empty, until the scene is saved (autosave will triger the update too). Other than that there should be nothing that could prevent it from working as expected. Of course, in case of multi/sub materials or other nested materials, it won't work either - if that's your case don't use sceneMaterials, assign the result of  getClassInstances Autodesk_material  to some variable instead and iterate those materials.</description>
      <pubDate>Thu, 23 May 2013 08:26:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291754#M17069</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2013-05-23T08:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291755#M17070</link>
      <description>I don't know why this does not work... i have got all the autodesk materials to an array "autodsk" I do not know how to iterate through that array.&lt;BR /&gt;&lt;PRE&gt;autodsk = getClassInstances Autodesk_material&lt;BR /&gt;for i in autodsk do&lt;BR /&gt;( Autogeneric =  autodsk.ConvertToGeneric &lt;BR /&gt;Autogeneric.name =  autodsk.name&lt;BR /&gt; replaceInstances autodsk Autogeneric)&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 May 2013 07:04:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291755#M17070</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-27T07:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291756#M17071</link>
      <description>Just tried this... voila it worked...&lt;BR /&gt;&lt;PRE&gt;autodsk = getClassInstances Autodesk_material&lt;BR /&gt;for i = 1 to autodsk.count do&lt;BR /&gt;( Autogeneric =  autodsk&lt;I&gt;.ConvertToGeneric&lt;BR /&gt;Autogeneric.name =  autodsk&lt;I&gt;.name&lt;BR /&gt; replaceInstances autodsk&lt;I&gt; Autogeneric)&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 May 2013 07:20:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291756#M17071</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-27T07:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291757#M17072</link>
      <description>When you are iterating this way, i.e. for item in collection, access that item then, for example for mat in autodsk do autogeneric = mat.ConvertToGeneric ... you get the idea.</description>
      <pubDate>Mon, 27 May 2013 08:22:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291757#M17072</guid>
      <dc:creator>Swordslayer</dc:creator>
      <dc:date>2013-05-27T08:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291758#M17073</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;try this...&lt;BR /&gt;&lt;BR /&gt;you must find the right Definition. This is my trick for example: mtl_Definition= findString mtl.DefinitionID "Concrete"&lt;BR /&gt;&lt;BR /&gt;But you can´t easy convert the Maps and Parameters. For this must you know, how a MI-File works and look at the Maps and Values in the MI-File. Second must you hack the Spider_Shader Values from Autodesk. The infos find you in the METASL-Codes. That is not so easy.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt; fn convert_Mtl_to_mrArchitectural mtl=&lt;BR /&gt; ( &lt;BR /&gt; -- if not classof mtl == Autodesk_Material then &lt;BR /&gt; newmtl = mtl &lt;BR /&gt; &lt;BR /&gt; case classof mtl of&lt;BR /&gt; (&lt;BR /&gt; Autodesk_Material:&lt;BR /&gt; ( if( not allowMatAuto ) then&lt;BR /&gt; (&lt;BR /&gt; return()&lt;BR /&gt; )&lt;BR /&gt; &lt;BR /&gt; nextmat= on&lt;BR /&gt; &lt;BR /&gt; if nextmat then (&lt;BR /&gt; mtl_Definition= findString mtl.DefinitionID "Ceramic"&lt;BR /&gt; if mtl_Definition != undefined then &lt;BR /&gt; ( DefinitionID="Ceramic"&lt;BR /&gt;   nextmat=off &lt;BR /&gt; ) else nextmat=on&lt;BR /&gt; )&lt;BR /&gt; &lt;BR /&gt; if nextmat then (&lt;BR /&gt; mtl_Definition= findString mtl.DefinitionID "Concrete"&lt;BR /&gt; if mtl_Definition != undefined then &lt;BR /&gt; ( DefinitionID="Concrete"&lt;BR /&gt;   nextmat=off &lt;BR /&gt; ) else nextmat=on&lt;BR /&gt; )&lt;BR /&gt; &lt;BR /&gt; if nextmat then (&lt;BR /&gt; mtl_Definition= findString mtl.DefinitionID "Gen"&lt;BR /&gt; if mtl_Definition != undefined then &lt;BR /&gt; ( DefinitionID="Generic"&lt;BR /&gt;   nextmat=off &lt;BR /&gt; ) else nextmat=on&lt;BR /&gt; )&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 May 2013 08:48:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291758#M17073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-27T08:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291759#M17074</link>
      <description>Correct me if I'm wrong but does this script check what type of Autodesk Material it is?....Then i will have to correspond material properties to vray material depending on the type of Autodesk material:)... I was trying to use Multyconvertor from scriptspot but Im unable to find the properties of autodesk materials other than Generic</description>
      <pubDate>Mon, 27 May 2013 10:38:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291759#M17074</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-27T10:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291760#M17075</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The Parameters and Maps, can you only convert, have knowledge about MI-File. The Multyconverter can this not.&lt;BR /&gt;&lt;BR /&gt;The code is only a part of a function.&lt;BR /&gt;&lt;BR /&gt;mtl = is your Autodesk Material&lt;BR /&gt;&lt;BR /&gt;the "case of" routine looks wish of Autodesk Material it is "Metal, Generic, Conrete ...."&lt;BR /&gt;&lt;BR /&gt;Max-Script Documentation:&lt;BR /&gt;&amp;lt;Autodesk_Material&amp;gt;.DefinitionID String default: "Generic" -- string;</description>
      <pubDate>Mon, 27 May 2013 11:30:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291760#M17075</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-05-27T11:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Autodesk materials</title>
      <link>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291761#M17076</link>
      <description>Will this do...&lt;BR /&gt;&lt;PRE&gt;fn convert_Mtl_to_mrArchitectural mtl=&lt;BR /&gt;  ( &lt;BR /&gt;   if not classof mtl == Autodesk_Material then &lt;BR /&gt;  newmtl = mtl &lt;BR /&gt;  &lt;BR /&gt;  case classof mtl of&lt;BR /&gt;  (&lt;BR /&gt;  Autodesk_Material:&lt;BR /&gt;  ( if( not allowMatAuto ) then&lt;BR /&gt;  (&lt;BR /&gt;  return()&lt;BR /&gt;  )&lt;BR /&gt;  &lt;BR /&gt;  nextmat= on&lt;BR /&gt;  &lt;BR /&gt;  if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "Ceramic"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="Ceramic"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;  &lt;BR /&gt;  if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "Concrete"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="Concrete"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;  &lt;BR /&gt;  if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "Generic"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="Generic"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;    if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "Glazing"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="Glazing"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;    if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "Hardwood"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="Hardwood"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;    if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "masonry_CMU"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="masonry_CMU"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;    if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "Metal"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="Metal"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;    if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "MetallicPaint"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="MetallicPaint"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;    if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "Mirror"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="Mirror"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;    if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "Plastic_Vinyl"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="Plastic_Vinyl"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;    if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "Solid_glass"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="Solid_glass"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;    if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "Stone"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="Stone"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;      if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "Wall_paint"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="Wall_paint"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;      if nextmat then (&lt;BR /&gt;  mtl_Definition= findString mtl.DefinitionID "water"&lt;BR /&gt;  if mtl_Definition != undefined then &lt;BR /&gt;  ( DefinitionID="water"&lt;BR /&gt;    nextmat=off &lt;BR /&gt;  ) else nextmat=on&lt;BR /&gt;  )&lt;BR /&gt;  )&lt;BR /&gt;  )&lt;BR /&gt;  )&lt;BR /&gt;  ---CERAMIC MATERIAL&lt;BR /&gt;if DefinitionID = "Ceramic" then&lt;BR /&gt;( --Autodesk Ceramic Material properties&lt;BR /&gt;--ceramic&lt;BR /&gt;newmtl.Diffuse=mtl.Ceramic_Color&lt;BR /&gt;mtl.Ceramic_Color_Option = 1&lt;BR /&gt;newmtl.texmap_diffuse=mtl.Ceramic_Color_Map&lt;BR /&gt; newmtl = mtl ())&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 May 2013 10:20:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/3ds-max-programming-forum/converting-autodesk-materials/m-p/4291761#M17076</guid>
      <dc:creator>hanselmoniz</dc:creator>
      <dc:date>2013-05-28T10:20:51Z</dc:date>
    </item>
  </channel>
</rss>

