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

    TagData GetDDescription - when hovering

    SDK Help
    0
    4
    680
    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

      On 07/12/2017 at 07:54, xxxxxxxx wrote:

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

      ---------
      While testing out some things and printing to the console I noticed that while hovering with the mouse over a tag (not selected), its GetDDescription is constantly called.

      Is there a specific reason for this?
      I can understand when the tag would be selected (as it shows the description into the Attribute Manager).
      But not being selected and simply hovered over, what's the purpose here?

        
      Bool MyTag::GetDDescription(GeListNode* node, Description* description, DESCFLAGS_DESC& flags)  
      {  
        if (!description->LoadDescription(node->GetType()))  
            return FALSE;  
        
        // fill the dropdown with dynamically values  
        const DescID *singleid = description->GetSingleDescID();  
        
        DescID cid = DescLevel( <gadgetID> , DTYPE_LONG, 0);  
        if (!singleid || cid.IsPartOf(*singleid, NULL)) // important to check for speedup c4d!  
        {  
            GePrint("dynamic values being added into dropdown");  
            BaseContainer listBC;  
            for (SortedStringArray::ConstIterator it = values.Begin(); it != values.End(); ++it)  
            {  
                listBC.SetString(it - values.Begin(), *it);  
                GePrint(*it);  
            }  
        
      ...  
        
      
      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 08/12/2017 at 01:49, xxxxxxxx wrote:

        Hello,

        The Object Manager provides two functions when you hover the cursor over an object or tag. First, a bubble help text with the element type and name will appear. Second, a "Show Help" command is constructed that can be invoked from the context menu or using a shortcut. This "Show Help" command is constructed using information from the element's Description.

        The continuous call of GetDDescription is probably just a lack of optimization.

        best wishes,
        Sebastian

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

          On 08/12/2017 at 02:48, xxxxxxxx wrote:

          OK,
          Is there anything I can do to prevent the continuous call of GetDDescription. Since the element's description will not result in any valid information into the online help system.
          In other words, can I prevent GetDDescription getting called, since "Show Help" will not result in anything useful?

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

            On 08/12/2017 at 08:10, xxxxxxxx wrote:

            Hello,

            there is nothing you can do to prevent this.

            best wishes,
            Sebastian

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