COFFEE Effector: Change parameters of clones?



  • 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);
    }


Log in to reply