The description class contains information for all description ID of an object.
For example it stores a BaseContainer for ID_BASEOBJECT_REL_POSITION that describes that this value is a Vector, has minimum and maximum values XYZ etc.
To access the actual values of these description parameters you will have to ask the object itself, for example with C4DAtom::GetParameter().
Example to get the name of a description, for example "Landscape Object":
{
{
AutoAlloc<Description>
desc;
return String();
return String();
if (bc)
}
return String();
}
@ DESC_NAME
String Name for standalone use.
Definition: lib_description.h:90
#define ConstDescID(...)
Definition: lib_description.h:592
#define DESCID_ROOT
Root description ID.
Definition: lib_description.h:21
MAXON_ATTRIBUTE_FORCE_INLINE Id GetTypeName()
Definition: typename.h:32
PyObject * op
Definition: object.h:520
PyStructSequence_Desc * desc
Definition: structseq.h:26
|
Bool | LoadDescription (const BCResourceObj *bc, Bool copy) |
|
Bool | LoadDescription (Int32 id) |
|
Bool | LoadDescription (const String &id) |
|
Bool | SortGroups () |
|
const BCResourceObj * | GetDescription () |
|
const BaseContainer * | GetParameter (const DescID &id, BaseContainer &temp, AtomArray *ar) const |
|
BaseContainer * | GetParameterI (const DescID &id, AtomArray *ar) |
|
Bool | SetParameter (const DescID &id, const BaseContainer ¶m, const DescID &groupid) |
|
void * | BrowseInit () const |
|
Bool | GetNext (void *handle, const BaseContainer **bc, DescID &id, DescID &groupid) const |
|
void | BrowseFree (void *&handle) const |
|
DescEntry * | GetFirst (const AtomArray &op) |
|
DescEntry * | GetNext (DescEntry *de) |
|
DescEntry * | GetDown (DescEntry *de) |
|
void | GetDescEntry (DescEntry *de, const BaseContainer **bc, DescID &descid) |
|
SubDialog * | CreateDialogI () |
|
void | FreeDialog (SubDialog *dlg) |
|
Bool | CreatePopupMenu (BaseContainer &menu) |
|
Bool | GetPopupId (Int32 id, const DescID &descid) |
|
Bool | CheckDescID (const DescID &searchid, const AtomArray &ops, DescID *completeid) |
|
Bool | GetSubDescriptionWithData (const DescID &did, const AtomArray &op, RESOURCEDATATYPEPLUGIN *resdatatypeplugin, const BaseContainer &bc, DescID *singledescid) |
|
const DescID * | GetSingleDescID () |
|
void | SetSingleDescriptionMode (const DescID &descid) |
|