Created
May 4, 2015 20:31
-
-
Save anonymous/53fda4bb8ee26f3f93f6 to your computer and use it in GitHub Desktop.
Tcustom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// C4D-StringResource | |
// Identifier Text | |
STRINGTABLE | |
{ | |
TCUSTOM_GROUP "TCustom"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONTAINER Tcustom | |
{ | |
NAME Tcustom; | |
INCLUDE Tbase; | |
GROUP TCUSTOM_GROUP | |
{ | |
BOOL TCUSTOM_TEST {} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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