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

    Deformer, Point-Data

    PYTHON Development
    0
    6
    573
    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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 19/07/2011 at 05:58, xxxxxxxx wrote:

      Hy there,

      I wondered if it is possible to read out the "deformed" values of a mesh having a deformer. I've seen that the PointOperator from XPresso is able to read out those values (ie. the deformed mesh). Is it possible in Python/COFFEE?

      Thank you,
      maxx

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 19/07/2011 at 06:17, xxxxxxxx wrote:

        Use op.GetDeformCache()

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 19/07/2011 at 07:31, xxxxxxxx wrote:

          Ah, nice, thanx Nux.

          Cheers,
          maxx

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 19/07/2011 at 08:00, xxxxxxxx wrote:

            Np,
            But I still don't know how to use this while rendering...
            What GetCache() and GetDeformCache() returns while rendering is always None..

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 19/07/2011 at 09:39, xxxxxxxx wrote:

              Hy Nux,

              is there no way to attach something here? Would be very helpful ...

              For now, just grab the file from here (DeformCacheTest_maxx.c4d) :
              www.artonbit.com/data

              When I render this in the picture viewer, it is working (so the GetDeformCache() does return something).

              Is that what you mean?

              Cheers,
              maxx

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

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 19/07/2011 at 13:24, xxxxxxxx wrote:

                Hi maxx,

                try your scene with using this code and a GeneratorObject instead of a polygon object as origin.

                import c4d  
                #Welcome to the world of Python  
                  
                  
                def main() :  
                  global orig,copy  
                  cache = orig.GetCache()  
                  if cache:  
                  cache = cache.GetDeformCache()  
                  
                  print orig.GetName(), orig.GetCache()  
                  
                  if not cache:  
                  return  
                  copy.SetAllPoints(cache.GetAllPoints())  
                  copy.Message(c4d.MSG_UPDATE)  
                

                Rendering an animation, the GetCache() returns the Cache during the animation.
                Rendering a single Frame, the GetCache() returns None.

                Thanks & Cheers,
                Niklas

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