THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 17/01/2005 at 23:28, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9
Platform: Windows ;
Language(s) : C++ ;
---------
Hello Everybody
I want to create Align to spline tag and then I want to
attach to an object ( a cube).
So I create a cube and then a spline object and then a
basetag object (type Taligntospline).
Here is my code:
///////
.......
Obj1=SplineObject::Alloc(3,Tcubic);
btSpline=BaseTag::Alloc(Taligntospline);
Obj2=BaseObject::Alloc(Ocube);
doc->InsertObject(Obj2,NULL,NULL);
pObj1=ToPoint(Obj1);
vObj1=pObj1->GetPoint();
vObj1[0]=Vector(12,4,5);
vObj1[1]=Vector(1,4,5);
vObj1[2]=Vector(2,44,2);
Obj1->Message(MSG_UPDATE);
Obj2->InsertTag(btSpline);
EventAdd(EVENT_FORCEREDRAW);
.......
///////
But I don't know what to do to assign the spline object (Obj1) to the Spline Path property of the tag object (btSpline). And also I want to know how to assign the rail path property too.
Please do me a favour!
With all my respects ...
ZawMinTun