MoData



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

    On 30/10/2010 at 08:05, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   11.5 
    Platform:      
    Language(s) :   C.O.F.F.E.E  ;

    ---------
    Is there a way of getting a polygon's position after it has been modified by a mograph deformer (in this case a displace deformer)? Is it accessible through GeGetMoData?

    On a semi-related issue, is there documentation for GeGetMoData? There is no reference to it in the HTML 12 documentation.



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

    On 03/11/2010 at 02:07, xxxxxxxx wrote:

    definetly not via COFFEE.



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

    On 03/11/2010 at 02:32, xxxxxxxx wrote:

    Ok, is there an xpresso node that I can get the data from to feed into a coffee node?

    And I've seen someone use parameters with GeMoData but I can't find any reference. Anyone?



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

    On 25/04/2011 at 12:48, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    <ADDRESS>
    User Information:
    Cinema 4D Version:   11.5 
    Platform:      
    Language(s) :   C.O.F.F.E.E  ;

    ---------
    </ADDRESS> Is there a way of getting a polygon's position after it has been modified by a mograph deformer (in this case a displace deformer)? Is it accessible through GeGetMoData?On a semi-related issue, is there documentation for GeGetMoData? There is no reference to it in the HTML 12 documentation.

    I know this is an old thread but is there any documentation for MoData methods/properties?



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

    On 25/04/2011 at 14:21, xxxxxxxx wrote:

    This is doable using the CoffeeEffector.

    main(doc,op)  
    {  
      var md = GeGetMoData(op);  
      if (!md) return false;  
      var cnt = md->GetCount();  
      var marr = md->GetArray(MODATA_MATRIX);  
      var fall = md->GetFalloffs();  
      
      var obj = md->GetGenerator();  
      if (!obj) return false;  
      
      var mg = obj->GetMg();// gets the global position of obj  
           
       var i = 0;  
      for (i = cnt - 1; i >= 0; --i)  
      {  
          var pos = marr[1]->GetV0();// Get the global position of this specific clone  
          pos = mg->GetMulP(pos); //pos is the global position  
      
          println(pos);  
      }  
      
      md->SetArray(MODATA_MATRIX, marr, true);  
      return true;  
    }
    

    If you then add a step effector and set it to change position. To change the second clone's position. You'll see the coffee effector keeps tabs of it's global position.
    Just make sure the step effector is listed first in the cloner's list of effectors.

    -ScottA



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

    On 28/04/2011 at 05:27, xxxxxxxx wrote:

    Originally posted by xxxxxxxx

    I know this is an old thread but is there any documentation for MoData methods/properties?

    For the present please refer to the C++ docs. Basic functionality of the ModData class is identical with COFFEE. The COFFEE docs have to be updated accordingly.

    cheers,
    Matthias


Log in to reply