On 14/06/2016 at 12:26, xxxxxxxx wrote:
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.
* 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.
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.
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.