Class CustAttrib
See Also: Class ICustAttribContainer , Class ReferenceTarget , Class ParamDlg, Class Animatable
class CustAttrib: public ReferenceTarget
Description:
This class is available in release 4.0 and later only.
This class represents the Custom Attributes.
A sample on how to use this class is located in \MAXSDK\SAMPLES\HOWTO\CUSTATTRIBUTIL
Methods:
public:
Prototype:
virtual TCHAR* GetName();
Remarks:
Implemented by the plugin.
A CustAttrib plugin can implement this method in order to provide the name that gets displayed in the TrackView.
Default Implementation:
{ return "Custom Attribute";}
Prototype:
virtual ParamDlg *CreateParamDlg(HWND hwMtlEdit, IMtlParams *imp);
Remarks:
Implemented by the plugin.
This method gets called when the material or texture is to be displayed in the material editor parameters area. The plug-in should allocate a new instance of a class derived from ParamDlg to manage the user interface.
Parameters:
HWND hwMtlEdit
The window handle of the materials editor.
IMtlParams *imp
The interface pointer for calling methods in 3ds max.
Return Value:
A pointer to the created instance of a class derived from ParamDlg.
Default Implementation:
{return NULL;}
Prototype:
virtual bool CheckCopyAttribTo(ICustAttribContainer *to);
Remarks:
Implemented by the plugin.
This method will check if it possible to copy the current custom attributes to the specified custom attributes container.
Parameters:
ICustAttribContainer *to
A pointer to the custom attributes container you wish to check for possible reception of the custom attributes..
Return Value:
TRUE if it is possible to copy, otherwise FALSE.
Default Implementation:
{ return true; }