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

    Descriptions: CUSTOMGUI_BASELISTLINK?

    SDK Help
    0
    3
    297
    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 02/08/2003 at 09:59, xxxxxxxx wrote:

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

      ---------
      Hi,

      to add (for example) a color chooser to a description one can use

        
      BaseContainer bc = GetCustomDataTypeDefault(DTYPE_COLOR);  
      bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_COLOR);  
      

      and similar for other data types, even filenames. But what about adding _links_ to a description? My first guess was:

        
      BaseContainer bc = GetCustomDataTypeDefault(DTYPE_BASELISTLINK);  
      bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_BASELISTLINK);  
      

      But while there is a DTYPE_BASELISTLINK there doesn't seem to be a CUSTOMGUI_BASELISTLINK.

      Uh-oh ...

      Regards,
      jl

      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 02/08/2003 at 14:31, xxxxxxxx wrote:

        Hi again,
        the corresponding customgui is CUSTOMGUI_LINKBOX. For parameters (like excluding object types for drag & drop please see the corresponding header file)
        So this will (should) work:
        BaseContainer test = GetCustomDataTypeDefault(DTYPE_BASELISTLINK);
         test.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_LINKBOX);
         test.SetString(DESC_SHORT_NAME, "Cool Link :o)");
         if (!description->SetParameter(DescLevel(20000,DTYPE_BASELISTLINK,0), test, DescLevel(YOUR_GROUP_ID_NOT_MINE)))
          return FALSE;
        Hope that helps
        Samir

        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 03/08/2003 at 03:26, xxxxxxxx wrote:

          Yeah, that did it.

          Thanks,
          jl

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