THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 10/02/2008 at 12:05, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R10
Platform: Windows ;
Language(s) : C++ ;
---------
Hi everyone. I am new to Cinema4D plugin development... I tried a few things with the SDK and started now with a spline object.
The following code belongs to the Class "My Spline" which owns the Funtion "MakeSpline". It inserts a spline with five lines in the structure manager of Cinema 4D. Now i want to set values for the X-Y-Z-Positions of the points the spline is made of. Any ideas how this works?
SplineObject* MySpline::MakeSpline(BaseDocument *doc)
{
SplineObject *spline = SplineObject::Alloc(5,Tcubic);
doc->InsertObject(op,NULL,NULL);
return op;
}
Thx for your help.