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

    PolygonObject* position not updated on render

    SDK Help
    0
    3
    323
    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

      On 14/06/2016 at 12:26, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R17 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      I have some Polygon Objects behind my object in hierarchy.

      Every time the "time" changes their matrix changes too and it works ok on viewport, supports play etc.

      The problem is that it doesn't work on Render animation.

      As a test I printed its position on every frame of the animation when rendering and it changes properly but it doesn't seem to be refreshed in the cache or something like that.

      Notes:

      * About cache I'm not caching it I'm returning a copy of it
      * I tried with m_actual_polyobj->SetDirty(DIRTYFLAGS::DIRTYFLAGS_ALL); and DIRTYFLAGS_MATRIX too

      Any idea on this? Regards.

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

        On 14/06/2016 at 12:50, xxxxxxxx wrote:

        9 times out of 10. This happens when using GetActiveDocument() in your code rather than using op->GetDocument().
        Because the rendered doc is not the active doc.

        -ScottA

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

          On 15/06/2016 at 02:08, xxxxxxxx wrote:

          The problem was that CopyTo was triggered and I need to set the new copy properly.

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