Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Dynamic Drop Down list in Ressource?

    SDK Help
    0
    3
    397
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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++  ;

      ---------
      Hi

      is 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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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;  
        
        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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 😉

          1 Reply Last reply Reply Quote 0
          • First post
            Last post