Skip to content

Instantly share code, notes, and snippets.

Created May 4, 2015 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/53fda4bb8ee26f3f93f6 to your computer and use it in GitHub Desktop.
Save anonymous/53fda4bb8ee26f3f93f6 to your computer and use it in GitHub Desktop.
Tcustom
// C4D-StringResource
// Identifier Text
STRINGTABLE
{
TCUSTOM_GROUP "TCustom";
}
#include "../res/description/Tcustom.h"
Bool PluginStart()
{
if (!Tcustom::Register())
return false;
return true;
}
Bool PluginMessage(Int32 id, void* data)
{
return false;
}
void PluginEnd()
{
}
Bool Tcustom::Register() {
Bool result = RegisterTagPlugin(TCUSTOM_PLUGINID, "Tcustom", TAG_EXPRESSION | TAG_VISIBLE, Tcustom::Alloc, "Tcustom", AutoBitmap("Tcustom.tif"), 0);
if (!result) {
GePrint("Failed to register Tcustom");
}
GePrint("Successfully registered Tcustom");
return true;
}
#ifndef TCUSTOM
#define TCUSTOM
#include "c4d.h"
enum {
TCUSTOM_GROUP = 1001,
TCUSTOM_TEST = 1002
};
#define TCUSTOM_PLUGINID 1000001
class Tcustom : TagData {
public:
static Bool Register();
static NodeData* Alloc(void) { return NewObjClear(Tcustom); }
};
#endif
CONTAINER Tcustom
{
NAME Tcustom;
INCLUDE Tbase;
GROUP TCUSTOM_GROUP
{
BOOL TCUSTOM_TEST {}
}
}
STRINGTABLE Tcustom
{
Tcustom "TCustom";
TCUSTOM_TEST "test"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment