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

    get polygon object vertex data in different frames

    SDK Help
    0
    4
    461
    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 05/05/2016 at 08:57, xxxxxxxx wrote:

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

      ---------
      Hello,
      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?  
      cheers

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

        On 06/05/2016 at 01:30, xxxxxxxx wrote:

        Hello,

        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().

        Best wishes,
        Sebastian

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

          On 13/05/2016 at 09:07, xxxxxxxx wrote:

          Hello,

          was your question answered?

          Best wishes,
          Sebastian

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

            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!

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