ExportMaterial

Exports a local material to a library.

UI Access Export to Library command in the material editor.
Parameters
Name Type Description

<ExportData>

Array

["NAME:<LibraryName>",

<MaterialName>, <MaterialName>, ...]

<LibraryName> String Name of the exported library.
<MaterialName> String Name of the material to be exported.
<LibraryLocation> String Location to save the library. Only "PersonalLib" and "UserLib" are allowed.
Return Value None.

 

Python Syntax ExportMaterial (<ExportData>, <LibraryLocation>)
Python Example

oDefinitionManager.ExportMaterial (["NAME:mylib",_

"Material1", "Material2", "Material3"], "PersonalLib")