On 22/05/2015 at 12:44, xxxxxxxx wrote:
Cinema 4D Version: R16
Platform: Windows ;
Language(s) : C++ ;
I need to add a point cache tag to an object and edit it's parameters. Is the point cache tag class accessible in C++? I can't seem to find it.
On 22/05/2015 at 17:02, xxxxxxxx wrote:
You have to access the description elements using the descriptions given in the .res/.h files for Tcageomcache which is found in the resource/modules/ca/description folder within the Cinema 4D install. There is no 'class' to access other than a BaseTag class. There is no class accessor to its internal data as far as I can tell. Unless Maxon wants to explain these descriptions and what they store and how to access them, it may not be possible to do more than set known description elements.
On 26/05/2015 at 11:32, xxxxxxxx wrote:
Ok, so I can access it's descriptions just fine. But how do I use obj->MakeTag( ID ) for the point cache tag through in C++?
The tag has no ID listed in the descriptions or documentation, the ID is never printed in the script log when adding or modifying the tag in the UI, and no enumeration listed in tag types.
Is there a way to add this tag to an object through code?
On 26/05/2015 at 12:17, xxxxxxxx wrote:
For ID, use this number: 1021302
I created a simple plugin that opens a dialog with a link box that you can drop things into. It then shows the ID number for anything, especially good for items that don't have a named ID.
C4DAtom::GetType() is what you use to get that ID number.
On 26/05/2015 at 13:39, xxxxxxxx wrote:
That worked, thanks!