On 03/06/2014 at 16:01, xxxxxxxx wrote:
Cinema 4D Version: 14
Platform: Mac OSX ;
Language(s) : C++ ;
I my shader parameters I have a link field that can be empty or contain a tag (a custom tag that I created).
How, in C++ can I get the content of the link field?
I'm using this code:
BaseContainer * data = sh->GetDataInstance();
BaseTag * the_tag = (BaseTag* ) data->GetBaseLink(TAG_OBJECT);
But this seems to crash Cinema4D.
Damn! So many castings!!! What am I doing wrong?