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

    problems adding custom description

    SDK Help
    0
    5
    419
    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 01/07/2004 at 05:56, xxxxxxxx wrote:

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

      ---------
      Hi!
      I want to add a custom description to an object but nothing appears. What did i do wrong?
      Code snippet in my PluginObject:
      Bool ParamObject::GetDDescription(GeListNode* node, Description* description, LONG& flags)
      {
       
       DescLevel dl = DescLevel(0, DTYPE_REAL, 0);
       DescID did = DescID(dl);
       
       BaseContainer bc;
       bc.SetReal(DESC_MIN, -1.0);
       bc.SetReal(DESC_MAX, 100.0);
       bc.SetString(DESC_NAME, "TestParameter");
       bc.SetString(DESC_SHORT_NAME, "Param1");
       bc.SetBool(DESC_ASKOBJECT, false);
       bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_REAL);
       if (!description->SetParameter(did, bc, DESCID_ROOT))
        GePrint("Parameter doesnt work!");
       flags |= DESCFLAGS_DESC_LOADED;
       return (ObjectData::GetDDescription(node, description, flags));
      }
       
      thx, lawn

      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/07/2004 at 08:02, xxxxxxxx wrote:

        Can't anyboy pls help me? It's very important...

        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 04/07/2004 at 21:26, xxxxxxxx wrote:

          I can't see anything wrong, except that the ID seems to be 0. Try with a more normal ID, like 10000. Also, you probably should have a LoadDescription() somewhere in there. See the GetDDescription() entry in the docs. There are also a few examples of custom descriptions in the SDK project that you might find useful.

          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 07/07/2004 at 07:33, xxxxxxxx wrote:

            Unfortunately there is no example program in the sdk of 8.5 ...

            I do not want to use LoadDescription because it shall be generated in - time (and destroyed as well...)
            Does the Descid have to be a bigger number?

            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 07/07/2004 at 20:43, xxxxxxxx wrote:

              I was referring to for example MorphMixer.cpp. Isn't that dynamic enough?
              I think LoadDescription() is necessary anyway, just to load the default categories for the object type. (It might be possible to add them manually, I haven't looked.)
              I don't know what the exact limits are for DescID, just that all the examples seem to start their IDs at 1000.

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