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

    ObjectData.Execute not called

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 835 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 04/06/2011 at 07:15, xxxxxxxx wrote:

      Hi,

      I have an ObjectData Plugin. But the Execute method is not called from c4d .. .

          def Execute(self, op, doc, bt, prority, flags) :  
            print "This is a test"  
            return True  
        
        def AddToExecution(self, op, list) :  
            print list  
            list.Add(op, c4d.EXECUTION_EXPRESSION, 0)  
            return True
      

      What to I do wrong ?

      Thanks,
      Niklas

      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 04/06/2011 at 08:37, xxxxxxxx wrote:

        Can you please post the arguments you pass to the RegisterObjectPlugin 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 04/06/2011 at 12:27, xxxxxxxx wrote:

                  data    = {  
                    "id":           cls.PLUGIN_ID,   # Registered !  
                    "str":          "Python Draw Helper",  
                    "g":            cls,  
                    "description":  "Odrawhelper",  
                    "info":         c4d.OBJECT_MODIFIER,  
                    "icon":         icon,  
                }
          

          What is the right info - id to pass here ?

          Thanks.

          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 04/06/2011 at 12:32, xxxxxxxx wrote:

            OBJECT_CALL_ADDEXECUTION is missing here.

            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 04/06/2011 at 12:48, xxxxxxxx wrote:

              There is nothing about this in the SDK.
              Please add it.

              Thanks anyway, I will try it now and report then. 🙂

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