Пример #1
0
SICALLBACK XSILoadPlugin( PluginRegistrar& in_reg )
{
	in_reg.PutAuthor(L"Svyatoslav Shumikhin");
	in_reg.PutName(L"AppLink_3DCoat_Plugin");
	in_reg.PutVersion(1,5);
	in_reg.PutHelp("http://www.3d-coat.com/forum/index.php");
	//RegistrationInsertionPoint - do not remove this line

	// Register commands for importing and exporting a polygon mesh
	in_reg.RegisterCommand(L"Coat3DExport");
	in_reg.RegisterCommand(L"Coat3DImport");

	in_reg.RegisterEvent(L"siOnActivateEvent",siOnActivate);

	// Install a top-level menu for the import/export tool
	in_reg.RegisterMenu(siMenuMainTopLevelID, L"AppLink_3DCoat", false,false);
	in_reg.RegisterMenu(siMenuMainFileExportID,"Export3DCoatMenu",false);
	in_reg.RegisterMenu(siMenuMainFileImportID,"Import3DCoatMenu",false);


	// Register a custom property to use as the import/export UI	
	in_reg.RegisterProperty(L"AppLink_3DCoat");

	return CStatus::OK;
}