THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 29/04/2004 at 07:35, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.200
Platform: Windows ;
Language(s) : C++ ;
---------
Hi, again a strange Problem.
When generating primitive Objects with GeneratePrimitive(GetActiveDocument(), Ocapsule, bc, 10.0, false, NULL);
all primitive Objects derived from Ocylinder (so Ocapsule etc.) generated in Cinema are invisible. Additionally the User then cannot edit the y - Coordinate of the Dimension.
The generation of Cubes or so works fine. what went wrong?
My Code:
BaseContainer bc;
BaseObject * object = GeneratePrimitive(GetActiveDocument(), Ocapsule, bc, 10.0, false, NULL);
Vector vr;
vr.x = 10.0;
vr.y = 10.0;
vr.z = 10.0;
object->SetPos(vr);
vr.x = 1;
vr.y = 1;
vr.z = 1;
object->SetScale(vr);
GetActiveDocument()->InsertObject(object, NULL, NULL, TRUE);
EventAdd(EVENT_FORCEREDRAW);
Thank You!