Class MultiMtl
See Also: Class Mtl.
class MultiMtl : public Mtl
Description:
This class provides access to the developer alterable properties of the 3ds max Multi/Sub-Object material.
Methods:
Prototype:
virtual void SetNumSubMtls(int n)=0;
Remarks:
Sets the number of sub-materials for the multi-material.
Parameters:
int n
The number of sub-materials.
Prototype:
virtual void GetSubMtlName(int mtlid, TSTR &s)=0;
Remarks:
This method is available in release 4.0 and later only.
Retrieves the name of the sub-material whose ID is passed.
Parameters:
int mtlid
The zero based index of the sub-material.
TSTR &s
The name is returned here.
Prototype:
virtual void SetSubMtlAndName(int mtlid, Mtl *m, TSTR &subMtlName)=0;
Remarks:
This method is available in release 4.0 and later only.
Retrieves the name and pointer to the material for the specified sub-material.
Parameters:
int mtlid
The zero based index of the sub-material.
Mtl *m
Points to the sub-material.
TSTR &subMtlName
The name is returned here.