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
    • Recent
    • Tags
    • Users
    • Login

    another getddescription problem

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 175 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 26/08/2008 at 05:18, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello all,
      I try to fill a combobox cycle in myObjectPlugin, i read a lot of tread on this issue but i can't find the correct way to add item in DESC_CYCLE container.
      here my Code:

      _

          
          
          _Bool Takemanager::GetDDescription(GeListNode *node, Description *description,LONG &flags)
          
          
          
          
          {
          
          
          
          
          if (!description->LoadDescription(1022860)) return FALSE;
          
          
          
          
          
          
          
          
          
          
          BaseObject * op = ((BaseObject * )node);
          
          
          
          
          BaseContainer * data = op->GetDataInstance();
          
          
          
          
          BaseDocument * doc = GetActiveDocument();
          
          
          
          
          
          
          
          BaseContainer group = GetCustomDataTypeDefault(DTYPE_GROUP);
          
          
          
          
          group.SetString(DESC_NAME, "Take Selector");
          
          
          
          
          if(!description->SetParameter(DescLevel(6001, DTYPE_GROUP, 0), group, DescLevel(0))) return TRUE;
          
          
          
          
          
          
          
          BaseContainer Ctake = GetCustomDataTypeDefault(DTYPE_LONG);
          
          
          
          
          Ctake.SetString(DESC_NAME, "Current Take");
          
          
          
          
          BaseContainer cycle ;
          
          
          
          
          Ctake.SetContainer(DESC_CYCLE,cycle);
          
          
          
          
          cycle.SetString(DESC_NAME,"test1");
          
          
          
          
          if(!description->SetParameter(DescLevel(6002, DTYPE_LONG, 0), Ctake, DescLevel(6001))) return TRUE;
          
          
          
          
          
          
          
          
          
          
          
          
          
          flags |= DESCFLAGS_DESC_LOADED;
          
          
          
          
          return TRUE;
          
          
          
          
          } _]
      

      Thanks a lot
      Franz_

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 26/08/2008 at 07:03, xxxxxxxx wrote:

        Ok solved
        Thanks
        Franz

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