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
    • Register
    • Login

    drag and drop in the AM

    Scheduled Pinned Locked Moved SDK Help
    8 Posts 0 Posters 710 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 29/12/2005 at 04:56, xxxxxxxx wrote:

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

      ---------
      Hi!
      Im a beginner in Plugins development for Cinema4d in C++. 
      My plugin must do some actions when the user drag a point selection tag to the Attribute Manager.  Can somebody give me infos on which function to use for the management of the drag and drop in the Attribute Manager? In my personal tag class derived from the TagData, is it an other function than "Message(GeListNode* node, LONG type, void* data)"?
      Thanks a lot in advance,

      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 29/12/2005 at 05:04, xxxxxxxx wrote:

        Welcome,

        D&D; in the AM doesn´t need to be handled by you. Cinema does this automatically. The link you can get with GetBaseLink (respectively GetObjectLink, GetMaterialLink) from the object´s basecontainer (op->GetDataInstance())

        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 29/12/2005 at 05:06, xxxxxxxx wrote:

          And yes, the message is MSG_DESCRIPTION_CHECKDRAGANDDROP in the Message function.

          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 30/12/2005 at 07:58, xxxxxxxx wrote:

            Ok, but the message MSG_DESCRIPTION_CHECKDRAGANDDROP is never returned in the Message function even if there was a drag and drop.

            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 02/01/2006 at 13:54, xxxxxxxx wrote:

              Which Message() function is this in? It should be sent to NodeData::Message(). Perhaps you could post a short code snippet?

              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 03/01/2006 at 07:48, xxxxxxxx wrote:

                In fact, I was looking for the messages from the function
                Message(GeListNode* node, LONG type, void* data)
                in the class MyTagData derived from the class TagData.  I think that I'm not looking in the good place (i.e., in the good class).  In fact, my question is rather "In which class must I wait for the message MSG_DESCRIPTION_CHECKDRAGANDDROP?"
                For the moment, I circumvented the problem by implementing my plugin with a dialog box.

                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 03/01/2006 at 08:22, xxxxxxxx wrote:

                  Hmm, I cannot check right now, but this code should work:

                  Bool DPInstantTree::Message(GeListNode *node, LONG type, void *t_data)  
                  {  
                       BaseObject          *op          = (BaseObject* )node;  
                       BaseContainer *vdata = op->GetDataInstance();  
                    
                       if(type==MSG_DESCRIPTION_CHECKDRAGANDDROP)  
                       {  
                            DescriptionCheckDragAndDrop* dc = static_cast<DescriptionCheckDragAndDrop*>(t_data);  
                            DescID di = dc->id;  
                            if(di[0]==DP_SUBLEVEL_V)  
                            {  
                                 //Do something :)  
                            }  
                       }  
                  }
                  

                  Hope that helps.
                  Katachi

                  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 05/01/2006 at 12:28, xxxxxxxx wrote:

                    Thanks you,
                    I will try when I will implement the plugin whitout dialog box.
                    Thanks again for your time.

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