THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/09/2012 at 23:43, xxxxxxxx wrote:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;
is there a possibility to fill a drop down list (like the static CYCLE description element) dynamical in an tag item?
I want the user to load a file with informations and then fill the drop down list with this informations.
On 20/09/2012 at 04:28, xxxxxxxx wrote:
Yes. Override GetDDescription() in your TagData-extended class to have dynamic description elements in the A.M. of your tag. Add a LONG type description and set a BaseContainer with the information elements in GetDDescription(). If the file doesn't change you can load it in Init() or check that the information was loaded in GetDDescription() before processing the drop-down list.
for (LONG index = 0L; index != numItems; ++index)
BaseContainer bc = GetCustomDataTypeDefault(DTYPE_LONG);
if (!description->SetParameter(DescLevel(YOUR_ID_FOR_THIS_DESC, DTYPE_LONG, 0L), bc, descID)) return FALSE;
On 24/09/2012 at 00:14, xxxxxxxx wrote:
=> its working well