Пример #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;
}
Пример #2
0
SICALLBACK XSILoadPlugin(PluginRegistrar& in_reg)
{
  in_reg.PutAuthor(L"Exocortex Technologies, Inc and Helge Mathee");
  in_reg.PutName(L"ExocortexAlembicSoftimage");
  in_reg.PutEmail(L"*****@*****.**");
  in_reg.PutURL(L"http://www.exocortex.com/alembic");

  // sync the softimage plugin version with the Crate version ---------------
  //		soft_MAJOR <-- combination of crate_MAJOR and crate_MINOR
  //		soft_MINOR <-- crate_BUILD
  //		(e.g. Crate version 1.1.134 resolves to Soft plugin version
  // 11.134)
  long digits = 1;
  long pten = 10;
  while (pten <= crate_MINOR_VERSION) {
    pten *= 10;
    digits++;
  }
  long soft_MAJOR =
      PLUGIN_MAJOR_VERSION * (long)(pow(10.0, digits)) + PLUGIN_MINOR_VERSION;

  in_reg.PutVersion(soft_MAJOR, crate_BUILD_VERSION);

  // moved into Application/Plugins/ExocortexAlembicSoftimage_UI.py
  // --------------------------------------------------------------
  // in_reg.RegisterMenu(siMenuMainFileExportID,L"alembic_MenuExport",false,false);
  // in_reg.RegisterMenu(siMenuMainFileImportID,L"alembic_MenuImport",false,false);
  // in_reg.RegisterMenu(siMenuMainFileProjectID,L"alembic_MenuPathManager",false,false);
  // in_reg.RegisterMenu(siMenuMainFileProjectID,L"alembic_ProfileStats",false,false);
  // in_reg.RegisterMenu(siMenuTbGetPropertyID,L"alembic_MenuMetaData",false,false);

  in_reg.RegisterCommand(L"alembic_export", L"alembic_export");
  in_reg.RegisterCommand(L"alembic_export_jobs", L"alembic_export_jobs");

  in_reg.RegisterProperty(L"alembic_export_settings");

  in_reg.RegisterCommand(L"alembic_import", L"alembic_import");
  in_reg.RegisterCommand(L"alembic_import_jobs", L"alembic_import_jobs");
  in_reg.RegisterCommand(L"alembic_attach_metadata",
                         L"alembic_attach_metadata");
  in_reg.RegisterCommand(L"alembic_create_item", L"alembic_create_item");
  in_reg.RegisterCommand(L"alembic_path_manager", L"alembic_path_manager");
  in_reg.RegisterCommand(L"alembic_profile_stats", L"alembic_profile_stats");
  in_reg.RegisterCommand(L"alembic_get_nodes", L"alembic_get_nodes");
  in_reg.RegisterCommand(L"alembic_get_paths", L"alembic_get_paths");
  in_reg.RegisterCommand(L"alembic_replace_path", L"alembic_replace_path");

  in_reg.RegisterOperator(L"alembic_xform");
  in_reg.RegisterOperator(L"alembic_camera");
  in_reg.RegisterOperator(L"alembic_polymesh");
  in_reg.RegisterOperator(L"alembic_polymesh_topo");
  in_reg.RegisterOperator(L"alembic_nurbs");
  in_reg.RegisterOperator(L"alembic_bbox");
  in_reg.RegisterOperator(L"alembic_normals");
  in_reg.RegisterOperator(L"alembic_uvs");
  in_reg.RegisterOperator(L"alembic_crvlist");
  in_reg.RegisterOperator(L"alembic_crvlist_topo");
  in_reg.RegisterOperator(L"alembic_visibility");
  in_reg.RegisterOperator(L"alembic_geomapprox");
  in_reg.RegisterOperator(L"alembic_standinop");

  in_reg.RegisterProperty(L"alembic_import_settings");
  in_reg.RegisterProperty(L"alembic_timecontrol");
  in_reg.RegisterProperty(L"alembic_metadata");

  // register ICE nodes
  Register_alembic_curves(in_reg);
  Register_alembic_points(in_reg);
  Register_alembic_polyMesh(in_reg);
  Register_alembic_string_array(in_reg);
  Register_alembic_float_array(in_reg);
  Register_alembic_vec2f_array(in_reg);
  Register_alembic_vec3f_array(in_reg);
  Register_alembic_vec4f_array(in_reg);
  Register_alembic_int_array(in_reg);

  // XSILoadPlugin_2( in_reg );

  // register events
  in_reg.RegisterEvent(L"alembic_OnCloseScene", siOnCloseScene);

  ESS_LOG_INFO("PLUGIN loaded");

  return CStatus::OK;
}