XRef_Material - superclass: material; super-superclass:MAXWrapper - 8:6 - classID: #(657198411, 1126842699)Instances of this class are used to XRef materials from external .MAX files.Available in 3ds Max 8 and higher.
Constructors:
XRef_Material ... XRefmaterial ...Properties:
<XRef_Material>.enableOverride BooleanClass default: false -- booleanGet/set the state of the "Enable" checkbox.
Available in 3ds Max 2016 and higher.
<XRef_Material>.overrideMaterial Standardmaterial default: Material #67:Standard -- material; Override_Material; SubAnimGet/set the Override Material
Available in 3ds Max 2016 and higher.
<XRef_Material>.nested BooleanClass default: false -- bool;Contains true if the XRef material is nested, false otherwise.
Read-only.
<XRef_Material>.srcFileName UndefinedClass default: undefined -- filename;Contains the source file name.
Read-only.
<XRef_Material>.srcItemName UndefinedClass default: undefined -- string;Contains the name of the source item.
Read-only.
<XRef_Material>.unresolved BooleanClass default: true -- bool;Contains true if the XRef is unresolved, false otherwise.
Read-only.
<XRef_Material>.xrefRecord UndefinedClass default: undefined -- Interface;Contains the XRef record Interface.
Read-only.
XRef_Material interfaces:
Interface:IXRefItemProperties:
<XRef_Material>.srcFileName : filename : ReadContains the source file name.
Read-only.
<XRef_Material>.srcItemName : string : ReadContains the name of the source item.
Read-only.
<XRef_Material>.xrefRecord : Interface : ReadContains the XRef record Interface.
Read-only.
<XRef_Material>.unresolved : boolean : ReadContains true if the XRef is unresolved, false otherwise.
Read-only.
<XRef_Material>.nested : boolean : ReadContains true if the XRef is nested, false otherwise.
Read-only.
Methods:
<maxObject><XRef_Material>.GetSrcItem resolveNested:<boolean>
resolveNested default value: falseReturns the source item object of the XRef Material.
If the object is being referenced from nested files (in other words, the object is referenced from a Max file containing an XRef of the object from another file instead of the actual object) and resolveNested is set to true, nested XRef files will be resolved.
<integer><XRef_Material>.GetParentItems <&maxObject array>parentItems
parentItems is Out parameterReturns an array of parent items in the by-reference Out parameter.
<integer><XRef_Material>.GetRootItems <&maxObject array>rootItems
rootItems is Out parameterReturns an array of root items in the by-reference Out parameter.
<integer><XRef_Material>.GetChildItems <&maxObject array>childItems
childItems is Out parameterReturns an array of child items in the by-reference Out parameter.
<void><XRef_Material>.GetNodes <&node array>xrefNodes
xrefNodes is Out parameterReturns an array of XRef nodes in the by-reference Out parameter.
Interface:IXRefMaterialMethods:
<material><XRef_Material>.GetSourceMaterial <boolean>resolveNestedXRefReturns the source material object. If resolveNestedXRef is set to true, nested XRef files will be resolved.