THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 19/09/2012 at 04:14, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;
---------
User Information:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;
---------
Hi
i have a plugin which creates a SplineObject sets the Points and inserts it into the Document.
Well all its write but if i select the Spline in Points Mode in Cinema the Spline disappear.
If I Select a point of the Spline and move it the Spline appears.
What have i done wrong?
The Code:
BaseDocument *doc = GetActiveDocument();
SplineObject *myspline = SplineObject::Alloc(5,SPLINETYPE_BSPLINE);
Vector *point = myspline->GetPointW();
for (int i = 0; i < myspline->GetPointCount(); i++)
{
point _.x = (LReal)(i * 100);
point _.z = (LReal)((i%2) * 100);
}
myspline->SetName("newname");
doc->InsertObject(myspline,NULL,NULL);
greatings
RM