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

    MSG_DESCRIPTION_COMMAND

    SDK Help
    0
    4
    386
    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 03/12/2012 at 20:43, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   12 
      Platform:      Mac OSX  ; 
      Language(s) :

      ---------
      Oh what a newbie I am!
      I am just trying to learn how to actually process messages coming from my toolPlugin. 
      Using mostly the c4dsdk source and the SDK docs.

      If I understand correctly I use DescriptionToolData for a toolPlugin. Therefore I use this Message function (below). For all I know I should see "ObjectAligner: Message" in the console after clicking a button or other gadget in the dialog. And that is true. From what I understand - and the sample code backs me up - I should also see "MSG_DESCRIPTION_COMMAND" to tell me that my function actually did receive one of those. But I don't and "some other command" is shown.

      So, just to make sure:
      in 
      Message (BaseDocument *doc, BaseContainer &data, LONG type, void *t_data) 
      LONG type is MSG_DESCRIPTION_COMMAND (or another one from the list)
      t_data pointing to a descID and its 'id' member contains the actual gadget

      Yikes, I am wasting so much time on this. Every time I understand this a little better something like this gets in the way and I can't make sense of it.

      Bool ObjectAligner::Message (BaseDocument *doc, BaseContainer &data, LONG type, void *t_data)
      {
          GePrint("ObjectAligner: Message");    
              
          if (type==MSG_DESCRIPTION_COMMAND) {
              GePrint("MSG_DESCRIPTION_COMMAND");
          } else {
              GePrint("some other command");
          }
         
          return TRUE;
      }

      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 10/12/2012 at 12:32, xxxxxxxx wrote:

        Just FYI. This issue is solved. Tried to delete this post.

        Peter

        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 10/12/2012 at 13:17, xxxxxxxx wrote:

          Or better yet, let us know what fixed it, ok? 🙂
          Someone down the line might run into a similar issue.

          Cheers
          Lennart

          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 10/12/2012 at 18:13, xxxxxxxx wrote:

            Sorry, of course!

            The fix is very embarrassing. It was working all along and the line "GePrint("some other command");" was throwing so many messages in the console that I overlooked the single "MSG_DESCRIPTION_COMMAND" I was looking for.

            In the meantime I am still learning how to extract all the information from the dialog.

            Peter

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