Page Information

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following commands print the plugin and Arnold versions.

Code Block
MAXtoAInterfaceMAXToAOps.MAXtoAVersionMAXToAVersion()
Code Block
MAXtoAInterfaceMAXtoAOps.ArnoldVersion()

 

 

 

 

 


Material Import/Export


ExportMaterials

Exports the given list of materials to the given .ass or .mtlx file. Returns the operation result as named enum.

Code Block
mtl1 = PhysicalMaterial()
mtl2 = MatteShadow()
result = MAXToAOps.ExportMaterials "d:\\temp\\MyMaterials1.ass" #(mtl1, mtl2)

 

ExportMaterialsSelected

Exports the materials selected in the SME (Slate material Editor) to the given .ass or .mtlx file. Returns the operation result as named enum.

Code Block
result = MAXToAOps.ExportMaterialsSelected "d:\\temp\\MyMaterials2.mtlx"

 

ExportMaterialsSelNodes

Exports the materials assigned to the selected nodes to the given .ass or .mtlx file. Returns the operation result as named enum.

Code Block
result = MAXToAOps.ExportMaterialsSelNodes "d:\\temp\\MyMaterials3.mtlx"

 

ExportMaterialsScene

Exports all the scene materials to the given .ass or .mtlx file. Returns the operation result as named enum.

Code Block
result = MAXToAOps.ExportMaterialsScene "d:\\temp\\MyMaterials4.ass"

 

ImportMaterials

Imports materials from a list of .ass or .mtlx files and returns a combined list of materials. Returns an empty list in case of error. Imported materials will also be placed in SME in individual tabs for each imported file.

Code Block
myMtls = MAXToAOps.ImportMaterials #("d:\\temp\\MyMaterials1.ass", "d:\\tempMyMaterials2.mtlx")