Esempio n. 1
0
/// ***************************************************************************
/// ***************************************************************************
Bool RegisterContainerObject(Bool menu)
{
  if (menu) {
    BaseContainer* menu = nullptr;
    FindMenuResource("M_EDITOR", "IDS_MENU_OBJECT", &menu);
    if (menu) {
      menu->InsData(MENURESOURCE_SEPERATOR, true);
      menu->InsData(MENURESOURCE_COMMAND, "PLUGIN_CMD_" + LongToString(Ocontainer));
    }
    return true;
  }

  _orig_GetInfo = C4DOS.Bo->GetInfo;
  C4DOS.Bo->GetInfo = _hook_GetInfo;

  AutoAlloc<BaseBitmap> bmp;
  bmp->Init(GeGetPluginPath() + "res" + "img" + "ocontainer.png");

  return RegisterObjectPlugin(
    Ocontainer,
    GeLoadString(IDS_OCONTAINER),
    OBJECT_GENERATOR,
    ContainerObject::Alloc,
    "Ocontainer",
    bmp,
    CONTAINEROBJECT_DISKLEVEL);
}
Esempio n. 2
0
Bool RegisterDeformerObject()
{
	return RegisterObjectPlugin(ID_HAIR_DEFOMER_EXAMPLE,GeLoadString(IDS_HAIR_DEFOMER_EXAMPLE),OBJECT_MODIFIER,HairDeformerObject::Alloc,"Ohairsdkdeformer",AutoBitmap("hairdeformer.tif"),0);
}
Esempio n. 3
0
Bool Registervoxelify(void)
{
	return RegisterObjectPlugin(ID_VOXELIFY ,GeLoadString(IDS_VOXELIFY),OBJECT_GENERATOR|OBJECT_INPUT|OBJECT_ISSPLINE|OBJECT_CALL_ADDEXECUTION,Voxelify::Alloc,"voxelify",AutoBitmap("tsp.tif"),0);
}
Bool RegisterGeneratorObject()
{
	return RegisterObjectPlugin(ID_HAIR_GENERATOR_EXAMPLE, GeLoadString(IDS_HAIR_GENERATOR_EXAMPLE), OBJECT_CALL_ADDEXECUTION | OBJECT_GENERATOR | OBJECT_INPUT, HairGeneratorObject::Alloc, "Ohairsdkgen", AutoBitmap("hairgen.tif"), 0);
}
Esempio n. 5
0
Bool RegisterVoxelGenerator(void)
{
	return RegisterObjectPlugin(ID_VOXELGENERATOR, "VoxelGenerator", OBJECT_GENERATOR, VoxelGenerator::Alloc, "fxp_voxelgen", AutoBitmap("constraint.tif"), 0);
}
Esempio n. 6
0
Bool RegisterAtomObject(void)
{
	return RegisterObjectPlugin(ID_ATOMOBJECT,GeLoadString(IDS_ATOM),OBJECT_GENERATOR|OBJECT_INPUT,AtomObject::Alloc,"Oatom",AutoBitmap("atom.tif"),0);
}
Esempio n. 7
0
Bool RegisterGrassObject()
{
	return RegisterObjectPlugin(ID_HAIR_GRASS_EXAMPLE,GeLoadString(IDS_HAIR_GRASS_EXAMPLE),OBJECT_GENERATOR,HairGrassObject::Alloc,"Ohairsdkgrass",AutoBitmap("hairgrass.tif"),0);
}