Skip to content

Instantly share code, notes, and snippets.

Created May 4, 2015
Embed
What would you like to do?
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