THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/12/2012 at 20:45, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;
---------
I'm trying to add my own tag plugin to an object from inside a GeDialog plugin.
To do this I assume we need to use Tplugin?
The SDK says to pass the plugin's ID to Tplugin. But it doesn't say how to do that.
Pass it how?
Suppose I have a tag plugin with the ID#1000003.
When I'm in my GeDialog plugin I can search for it like this:
BasePlugin *myplugin = FindPlugin(1000003, PLUGINTYPE_ANY);
if(!myplugin) return FALSE;
Yup...It's there and I can see it from inside my GeDialog plugin.
So now I go about trying to create the tag:
BaseObject *active = doc->GetActiveObject();
BaseTag *myTag = active->MakeTag(Tplugin);
Now what?
How do I "pass" the ID#1000003 to the tag?
-ScottA