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

    COFFEE Effector: Change parameters of clones?

    Scheduled Pinned Locked Moved SDK Help
    1 Posts 0 Posters 115 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 26/04/2011 at 13:53, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R11.5 
      Platform:      Mac OSX  ; 
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      Hello!

      I jumping into COFFEE, specifically the COFFEE effector, and I have run into a (hopefully) simple problem I can't seem to solve. I know how to access the matrix of a clone to change position, scale, etc. just fine. But lets say I have a Sweep NURBS object in a cloner and I want to change the Sweep End parameter on a per-clone basis? I can do this just fine when it's not in a cloner, but as soon as the Sweep NURBS object goes into the cloner I can't seem to make it work. I have pasted a very simple code at the bottom - but all I get is an "Incompatible values… OBJECT/OBJECT" error. I feel like I'm missing something simple but I can't figure out what it is. Any help would be appreciated. Thanks!

      R

      main(doc,op){
      var md = GeGetMoData(op);
      if (!md) return false;
      var cnt = md->GetCount();
      var marr = md->GetArray(MODATA_MATRIX);
      var obj = marr[0];
              obj#SWEEPOBJECT_GROWTH = .5;
      println(obj);
      }

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