On 16/07/2013 at 07:24, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R13-R14
Platform: Windows ;
Language(s) : C++ ;
---------
From the SDK:
_The description class contains information for all description ID of an object. For example it stores a[BaseContainer](file:///Y:/Setups/Maxon/Cinema4D/SDK/C4DR14041SDKHTML20130510/help/pages/c4d_basecontainer/class_BaseContainer62.html) for ID_BASEOBJECT_POSITION
that describes that this value is a [Vector](file:///Y:/Setups/Maxon/Cinema4D/SDK/C4DR14041SDKHTML20130510/help/pages/ge_math/class_Vector1539.html), has minimum and maximum values XYZ etc.
_
--
This is excellent, exactly what I am after. I want to know if a description element has the UNIT DEGREE attribute set. But I have no idea how to do this. Have tried it like this:
AutoAlloc<Description> desc;
node->GetDescription(desc, DESCFLAGS_DESC_0 | DESCFLAGS_DESC_MAPTAGS);
const BaseContainer* bc = desc->GetParameterI(FOO_ID, NULL); //DESCID_ROOT
if(bc)
{
String unitUsed = bc->GetString(DESC_UNIT);
String elementName = bc->GetString(DESC_NAME);
}
I am able to get the element name, but not the unitUsed, which always is of zero length.
The node is generated inside the tag itself, using GeListNode* node = NodeData::Get();