Dynamic Drop Down list in Ressource?
-
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:
User Information:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;---------
Hiis there a possibility to fill a drop down list (like the static CYCLE description element) dynamical in an tag item?
Background:
I want the user to load a file with informations and then fill the drop down list with this informations.Greatings Ralf
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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.
BaseContainer listBC; for (LONG index = 0L; index != numItems; ++index) { listBC.SetString(index, String("???")); } BaseContainer bc = GetCustomDataTypeDefault(DTYPE_LONG); bc.SetString(DESC_NAME, "List"); bc.SetContainer(DESC_CYCLE, listBC); if (!description->SetParameter(DescLevel(YOUR_ID_FOR_THIS_DESC, DTYPE_LONG, 0L), bc, descID)) return FALSE;
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 24/09/2012 at 00:14, xxxxxxxx wrote:
thank you
=> its working well