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

    How to get the description in a message handler?

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 184 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 23/03/2010 at 12:59, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   11 
      Platform:      Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      I have an expression tag, and would like to make changes on a description during the Message method.
      I catch the MSG_DESCRIPTION_CHECKUPDATE message. So far, so good...

      Here's my question:

      How do I get the BaseContainer of my description in this method? Reading to a couple of posts I found that it could have to do with DescriptionCheckUpdate->decsID, but the documentation misses a lot of background how this is suppose to work.

      Any help would be appreciated.

      Thanks!

      Kabe

      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 23/03/2010 at 23:52, xxxxxxxx wrote:

        Ok, resolved...

          
        Bool MyPlugin::Message(GeListNode *node, LONG type, void *data)   
        {   
             switch (type)   
            {   
                case MSG_DESCRIPTION_CHECKUPDATE:   
                {   
                       BaseContainer *bc = ((BaseList2D* )node)->GetDataInstance();   
                       if (bc) {   
          
                            ...do whatever you have to do...   
          
                       }                  
                  }   
             }   
             return SUPER::Message(node, type, data);   
        }   
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post