THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/09/2011 at 10:41, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.6+
Platform: Windows ; Mac ; Mac OSX ;
Language(s) : C++ ;
---------
Howdy,
OK, I know how to set an element of a vector key for a Description Attribute by getting the description ID like this:
// get X pos description ID
DescID dscID = DescID(DescLevel(ID_BASEOBJECT_POSITION,DTYPE_VECTOR,0),DescLevel(VECTOR_X,DTYPE_REAL,0));
But how do I get the description ID of the X, Y and Z elements of a User Data Vector? It seems like it needs a LONG value to replace the "ID_BASEOBJECT_POSITION" in the above line of code, but what is that ID for the User Data Vector?
The only thing I'm able to get by browsing the User Data descriptions is the DescID like this:
dd->BrowseGetNext(hndl, &dscID, &bc);
... but there doesn't seem to be a function in the DescID class that returns a LONG ID.
So how do I get the LONG ID to use to get the level of the X, Y and Z elements of the User Data Vector so I can set keys?
Adios,
Cactus Dan