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
    • Register
    • Login

    Another question for animated data extraction

    Cineware SDK
    c++ sdk
    2
    3
    856
    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.
    • K
      khor
      last edited by

      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?

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @khor
        last edited by ferdinand

        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 a BaseObject 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

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • ferdinandF
          ferdinand
          last edited by

          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

          MAXON SDK Specialist
          developers.maxon.net

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