Deformer, Point-Data



  • 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



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



  • 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



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



  • 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



  • 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


Log in to reply