THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 27/05/2004 at 00:50, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 8.5
Platform:
Language(s) : C.O.F.F.E.E ;
---------
Hello to all !!
Tnx for the yours advices, i have written this simple plugin to make a Cube primitive!!
I notice that when i set the fillet on this Cube, it dosen't activate on cube !!
Where i wrong?
// Plugin ID
const var PLUGIN_ID = 4444444;
// Plugin class for creating objects
class CreateCube extends MenuPlugin
{
public:
CreateCube(); // Constructor
GetID(); // Get Plugin ID
GetName(); // Get Plugin Name
GetHelp(); // Get Plugin Caption
Execute(doc); // Execute MenuPlugin
}
CreateCube::CreateCube() { super(); }
CreateCube::GetID() { return PLUGIN_ID; }
CreateCube::GetName() { return "Create Cube Plugin"; }
CreateCube::GetHelp() { return "Cube Primitive creation"; }
CreateCube::Execute(doc)
{
// Create cube
var cube = new(CubeObject);
var ct = cube- >GetContainer();
ct- >SetData(PRIM_CUBE_LEN, vector(200, 100, 300));
ct- >SetData(PRIM_CUBE_FILLET, 4);
ct- >SetData(PRIM_CUBE_SUBF, 4);
cube- >SetContainer(ct);
// Insert a Cube object
doc- >InsertObject(cube, NULL, NULL);
__
// Messages
GeEventAdd(NEW_ACTIVE_OBJECT);
doc- >Message(MSG_UPDATE);
doc- >Message(DOCUMENT_CHANGED);
return TRUE;
}
main()
{
__
// Register MenuPlugin
Register(CreateCube);
}
Tnx in advance!!