THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 20/11/2003 at 07:56, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.200
Platform: Mac OSX ;
Language(s) : C.O.F.F.E.E ;
---------
I am having some serious COFFEE blues in version 8.2. I am unable to create PrimitiveObjects. The problem in its simplest form:
Insert the following lines into the Execute method of the MenuPlugin stub supplied with the SDK:
var x = new(PrimitiveObject);
x->SetPrimitiveType(PRIMITIVE_CUBE); // fails here, x is NIL
x is NIL everytime. There is no other code in the example besides the minimum MenuPlugin overrides. COFFEE is not failing completely as I am able to create NullObjects or BooleObjects, for example. Can anyone create a PrimitiveObject? I'm freaked out!!
PS. Even in a COFFEE Expression Tag, the same 2 lines of code will fail... but I am able to create primitives thru the GUI : (