On 09/02/2016 at 09:44, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R15-R17
Platform: Windows ;
Language(s) : C++ ;
---------
Probably this is an stupid question but I'm totally newbie to C4D itself (not only SDK) but as far as I could imagine this should work...
Lets imagine I have an ObjectData called OD_A and other called OD_B I can create both properly from plugins menu and all is ok, but at certain point I need to create several OD_B instances inside my OD_A
And I did something like:
for(int i=0;i<maximumB;i++)
{
BaseObject* obj = BaseObject::Alloc(ID_OD_B);
if (obj)
{
OD_B* node = (OD_B* )obj->GetNodeData();
obj->SetName(myName _);
//obj->InsertUnder(virtualparent);
}
}
but nothing seems to happen, obviusly the code is already running since I can insert a messagebox in the if(obj) part and it was shown.
Thank you to everyone in advance.