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:
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?
BaseObject * object = GeneratePrimitive(GetActiveDocument(), Ocapsule, bc, 10.0, false, NULL);
vr.x = 10.0;
vr.y = 10.0;
vr.z = 10.0;
vr.x = 1;
vr.y = 1;
vr.z = 1;
GetActiveDocument()->InsertObject(object, NULL, NULL, TRUE);
On 01/05/2004 at 17:33, xxxxxxxx wrote:
You need to set a few parameters in the bc before GeneratePrimitive(). See PrimitiveObject or Ocapsule.res (and the files it includes) for which IDs to use. (If C.O.F.F.E.E. doesn't recognize the IDs you can copy them from the corresponding Ocapsule.h file.)
On 04/05/2004 at 01:06, xxxxxxxx wrote:
Well I code in C++ with SDK 8.206 -
so I think this is not the sollution. Can anyone help me with this please?
On 04/05/2004 at 05:38, xxxxxxxx wrote:
Sorry, I don't know why I thought it was C.O.F.F.E.E. However, I still think that you might have to set some parameters. Specifically, adding these lines to your code fixed the problem:
On 04/05/2004 at 12:48, xxxxxxxx wrote:
I fixed it...
For anyone interested: GeneratePrimitive does not work with Ocylinder but you can create any Objects by
BaseObject * MyCylinder = BasObject::Alloc(Ocylinder);