Message 1 of 3
node->ClassID() and node->SuperClassID() Returning Incorrect Values
Not applicable
08-16-2011
06:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am writing a C++ plugin for 3ds Max 2011 in Visual Studio 2010.
I am able to get the correct values for most properties from my INode pointer (Name, WireColor, ObjOffsetPos, etc.), but for some reason I cannot get the correct ClassID and SuperClassID. For example:
Interface *max = GetCOREInterface();
INode *node = max->GetSelNode(0);
Class_ID classID = node->ClassID(); // always returns (1, 0)
unsigned long superClassID = node->SuperClassID(); // always returns 1
Everything seems to work propertly if I use MaxScript:
$.ClassID returns different values depending what you select
$.SuperClassID returns 16 if an object is selected, and 64 if a shape is selected
I am able to get the correct values for most properties from my INode pointer (Name, WireColor, ObjOffsetPos, etc.), but for some reason I cannot get the correct ClassID and SuperClassID. For example:
Interface *max = GetCOREInterface();
INode *node = max->GetSelNode(0);
Class_ID classID = node->ClassID(); // always returns (1, 0)
unsigned long superClassID = node->SuperClassID(); // always returns 1
Everything seems to work propertly if I use MaxScript:
$.ClassID returns different values depending what you select
$.SuperClassID returns 16 if an object is selected, and 64 if a shape is selected