GetObjectName()

 
 
 
Posted by:MichiMichbeck
Data created:11 June 2010

I am just wondering where to find the method

// From Animatable
    virtual TCHAR *GetObjectName() { return GetString(IDS_CLASS_NAME); }

in Max.Net ?
It is important to override this method to provide a name for a plugin modifier within the modifier stack. I didn't find it as expected in my Modifier class (derived from class Modifier) as an override method!

Thx and Greets
Michbeck

This should be it in Autodesk.Max.Plugins.BaseObject:

public virtual string ObjectName
    {
        get { return ((Autodesk.Max.IBaseObject)_Impl).ObjectName; }
    }

Marsel Khadiyev (Software Developer, EPHERE Inc.)

Yeah it works, thx Marsel! I just forgot that the wrapper translates some Get-methods to Properties.

Greets, Michbeck