THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/10/2012 at 20:01, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform:
Language(s) : C++ ;
---------
i'm kinda new to sdk
here's what i did to create a simple polygon just by clicking the icon in the plugin menu
Bool MyPlugin::Execute(BaseDocument *doc)
{
BaseObject* mine = NULL;
mine = BaseObject::Alloc( Opolygon );
mine->SetName("MyPolygon");
doc->InsertObject( mine , NULL , NULL );
doc->AddUndo( UNDOTYPE_NEW, mine );
doc->Message(MSG_UPDATE);
return true;
}
problem is ...after i click...i need to press any where to update the document...help please