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
    • Recent
    • Tags
    • Users
    • Login

    MoData

    Scheduled Pinned Locked Moved SDK Help
    6 Posts 0 Posters 535 Views
    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 Offline
      Helper
      last edited by

      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.

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

        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.

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

          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?

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

            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?

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

              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

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

                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

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