Another question for animated data extraction
-
I have some hardness to understand how to read/extract animated geometry data. We are doing it by GetCache()/etc.. in C4D SDK. But here I can see only SetTime() and Execute() for BaseDocument, and It doesn't produce the meshes are animated at the frame. As I can see that we cannot read actual object Matrixes by GetMg()/etc.. for the current frame.
Question how to read frame data for animated meshes, both for vertices and matrices?Also I'm seeing some classes are missing in Cineware. What about mograph stuff? Cannot we use them?
-
Hello @khor,
Thank you for reaching out to us. I am a bit puzzled by your question, at least in parts, and I might be misunderstanding you here and there, please feel free to clarify any misunderstandings on my side.
First of all, since this is the Caneware SDK forum, I assume you are talking about Cineware SDK version 22.0, and not the Cineware dll library.
We are doing it by GetCache()/etc.. in C4D SDK. But here I can see only SetTime() and Execute() for BaseDocument, ..
I have trouble following here, since
GetCache()
is aBaseObject
method while the two other methods are not.BaseObject
has been mapped to the Cineware SDK, including the methods GetCache(), GetDeformCache(), and GetMg().It doesn't produce the meshes are animated at the frame. As I can see that we cannot read actual object Matrixes by GetMg()/etc.. for the current frame.
Just as in the Cinema 4D SDK, you read the 'tracks' (see CTrack functions in BaseList2D) of a node (an object, tag, material, etc.) to get animation data. Later on you talk about PLA, I would have to try out myself if they are supported in the Cineware SDK, but I assume they are.
Also I'm seeing some classes are missing in Cineware. What about mograph stuff? Cannot we use them?
With the default Cineware export settings, all objects will export their caches, which you can then read. But the logic of Mograph (or other modules) is not part of Cineware. I would also recommend having a look at our Cineware SDK Quickstart Guide, especially the section "All about reading a Cinema 4D project file" (P. 7). I would also recommend reading Polygon Objects and Cashes in the Cineware SDK documentation.
I would also have to ask you to provide a more concrete example of what you want to achieve. There is a huge difference between 'animated meshes, both for vertices and matrices', i.e., what Cinema calls PLA and for example a bend object which is animated and by that drives implicitly the vertices of a mesh.
Cheers,
Ferdinand -
Hello @khor,
without any further questions and other postings, we will consider this topic as solved and flag it as such by Friday, 17/06/2022.
Thank you for your understanding,
Ferdinand