Recreate an Xpresso setup COFFEE

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

On 30/05/2010 at 02:21, xxxxxxxx wrote:

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

---------
Hi,
I'm trying to recreate a simple Xpresso setup with COFFEE in which a spline stays pinned to a polygon mesh. My setup appears to be correct, but the spline in my COFFEE setup will only appear pinned to the polygon mesh when it's selected in the Object Manager in point mode.

My C4D file is available at the link below and I've included some screengrabs of my setup. I would really appreciate it of somebody could tell me what I'm doing wrong...

http://dl.dropbox.com/u/790386/XpressoVcoffee.c4d.zip

[FLASH WIDTH=300 HEIGHT=200]http://dl.dropbox.com/u/790386/xpressoVcoffee.flv[/FLASH]

http://dl.dropbox.com/u/790386/xpressoVcoffee.mov

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

On 30/05/2010 at 06:50, xxxxxxxx wrote:

As in your other thread I've added what's needed.
The global calculation and most important the Update
Message. As stated in the SDK, when dealing with modifying
, the Update is important

Cheers
Lennart

  
main(doc,op)   
{   
var spline = doc->FindObject("Spline.1");   
var pList = new(array,4);   
  
    pList[0] = 1;   
    pList[1] = 7;   
    pList[2] = 5;   
    pList[3] = 3;   
  
var i;   
var pointPos;   
  
for(i=0; i< sizeof(pList); i++)   
{   
   pointPos = op->GetPoint(pList[i]);   
   pointPos = op->GetMg()->GetMulP(pointPos); // Global positions   
  
   spline->SetPoint(i, pointPos);   
   spline->Message(MSG_UPDATE); // <- IMPORTANT   
}   
}   

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

On 30/05/2010 at 09:24, xxxxxxxx wrote:

Thanks Lennart, I'm really grateful for your help. Gonna look into this now....