Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    1. Maxon Developers Forum
    2. Eduardo Oliveira
    3. Topics
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by Eduardo Oliveira

    • E

      External Compositing Tag not working with generated objects by ObjectData Plugin

      Cinema 4D SDK
      • python • • Eduardo Oliveira
      5
      0
      Votes
      5
      Posts
      908
      Views

      E

      ok, my apologies. i guess my question is at what point to i check for dirty, and at what point do i insert the nulls?

    • E

      Setting up ObjectData plugin priority in Python

      Cinema 4D SDK
      • python sdk • • Eduardo Oliveira
      3
      0
      Votes
      3
      Posts
      490
      Views

      M

      Hi @Eduardo-Oliveira first of all welcome on the PluginCafe community.

      I think @zipit already provided you some correct answers or at least point you that this workflow is kind of strange for a Cinema 4D user since normally the object by itself doesn't really set its own position, but it's up to a tag (constraint Tag) to define the object position to another one.

      But in case you really want to do it, doing it in the Execute method of your ObjectData is fine.

      def AddToExecution(self, op, list): list.Add(op, c4d.EXECUTIONPRIORITY_GENERATOR, c4d.EXECUTIONFLAGS_CACHEBUILDING) return True def Execute(self, op, doc, bt, priority, flags): op.SetMg(doc.GetFirstObject().GetMg()) return c4d.EXECUTIONRESULT_OK

      You also need to ensure you registered your object with the flag c4d.OBJECT_CALL_ADDEXECUTION so AddToExecution and Execute are called.

      Cheers,
      Maxime.