THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/05/2007 at 04:32, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
---------
Hello
I'm trying to modify an existing linear spline by its coffee tag. This is how far I got:
main(doc,Kurve) {
//Number of Spline points
var Punkte = 10;
// pointer to Container of Kurve
var KC = Kurve->GetContainer();
// fill array with canned data
var KPunkt = new (array,3,Punkte);
var k,j;
for (j=0; j<Punkte; j++){
for (k=0; k<3; k++){
KPunkt [k][j] = k + j + k*j;
}
}
// put points into Container
KC->SetData(116,Punkte);
}
Now how can I get the KPunkt array to adding points to the actual spline, redefining and drawing it?
Thanks for any help,
Wind