On 17/05/2013 at 18:39, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
Hi, I am up and running writing C++ tag plugins and Visual Studio 2010 and the debugger and C4D cooperate nicely. What I am really struggling with, is how to access certain elements.
Bool CopyRig::GetDEnabling(GeListNode* node, const DescID& id, const GeData& t_data, DESCFLAGS_ENABLE flags, const BaseContainer* itemdesc)
{
This works:
if (id[0].id == MYTAGPLUGIN_LINK_SOURCE)
bla bla
}
Here I have a LINK field, where I pick an object.
How do I determine if an object has been picked at all, and then how do I access that object?
I have written Python plugins, and had no real problems with this. But the code is obviously not transferable so I must start all over again.
Another thing. The Joint object seems to be hard to find.. I have linked in #include "lib_ca.h" and various other files. When using GetTypeName() it returns, yes, "Joint". But not matter what I do to try to declare a Joint variable, VS says there is an unknown identifier.
Yes, I have a loooong way to go it seems. I wish there were a document somewhere describing just how to access a tag's various properties (especially linked objects).
The next thing I want to do is to clone objects and move them and make them children of other objects. Lots of new stuff to learn..
-Ingvar