THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 06/05/2008 at 03:16, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.5
Platform: Windows ;
Language(s) : C++ ;
---------
Hey folks,
I recently started developing a plug-in in C++. After seeing through sample code and grubbing in the documentation I have still difficulties to understand, what steps are needed to create an object (i.g. a polygonal sphere). At least I am sure of beeing in need of this, the class definition and an initialization:
class GenerateObject : public ObjectData
{
public:
virtual Bool Init(GeListNode *node);
virtual BaseObject* GetVirtualObjects(PluginObject *op, hierarchyHelp *hh);
virtual Bool Message(GeListNode *node, LONG type, void *t_data);
static NodeData *Alloc(void) { return gNew PolygonObject; }
}
Bool GenerateObject::Init(GeListNode *node)
{
BaseObject *op= (BaseObject* ) node;
BaseContainer *data = op->GetDataInstance();
return TRUE;
}
Is this correct? What is the next step to continue?