get polygon object vertex data in different frames
On 05/05/2016 at 08:57, xxxxxxxx wrote:
Cinema 4D Version: 17
Platform: Windows ;
Language(s) : C++ ;
Assuming i have a polygon_object that deforms after a few frames. In order to do some geometric calculations i would love it if i could have access to an array that stores polygon_object- >GetPointR() at a specified interval of frames.
In other words:
array[t] = polygon_object->GetPointR() at some time t
As far as i have found out is that in order to construct such an array i need to set the document time to some time t before i can access the vertices at that time. Is there a better, safer way to do it?
On 06/05/2016 at 01:30, xxxxxxxx wrote:
yes, you have to animate the scene to get the state of all objects and of your target object in that very frame. Please notice that setting the frame of the BaseDocument is not enough. To animate the scene (and to call all expressions etc.) you have to use ExecutePasses(). If the scene contains simulations like particles or dynamics you have to call this for every frame previous of your target frame.
If a deformer is applied to a polygon object you can get this deformed state with GetDeformCache().
On 13/05/2016 at 09:07, xxxxxxxx wrote:
was your question answered?
On 13/05/2016 at 13:50, xxxxxxxx wrote:
Sebastian, i guess you could consider this question answered. However, what i was looking for was a way to interface more directly with c4d data. cheers!