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

    Object Data Plugin Help [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 460 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

      On 25/12/2015 at 07:38, xxxxxxxx wrote:

      Hey there,

      here is my problem:

      I have made an object and in the .res file I made a button that should, when pushed, open a seperate plugin, and I don't really know how to do that. Do I have to write the code into the ObjectData's Execute method or where do I have to write my code?

      hopefully everything is clear ^^ 
      (sorry fo my bad english)

      wish you guys a nice Chtistmas day!

      greetings,
      neon.

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

        On 25/12/2015 at 12:52, xxxxxxxx wrote:

        No, in the "Message" method. Straight from the python doc:

          
        def Message(self, node, type, data) :   
            if type==c4d.MSG_DESCRIPTION_COMMAND:   
                if data['id'][0].id==THE_BUTTON_ID:   
                    print "Pushed button with command ID", THE_BUTTON_ID   
            return True   
        

        The method "Message" is inherited from NodeData.

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

          On 04/01/2016 at 01:50, xxxxxxxx wrote:

          Hello,

          as Cairyn shows, the button is catched in NodeData.Message().

          Best wishes,
          Sebastian

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

            On 15/01/2016 at 09:20, xxxxxxxx wrote:

            Hello Neon,

            was your question answered?

            Best wishes,
            Sebastian

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

              On 20/01/2016 at 08:36, xxxxxxxx wrote:

              Hello S_Bach, 
              sorry for the late answer, I had to much work to do for school, that I could't even take a look in the forum and wrire a reply, really sry for that!

              But yes, my question was answered, thank you two ^^

              Best wishes, 
              neon

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