On 16/09/2016 at 00:47, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R17
Platform: Windows ;
Language(s) : C++ ;
---------
Hello.
I have a filename parameter, which I try to retrieve in Read method (TagData plugin).
Here is the code using GetDataInstance and GetParameter
//1
BaseContainer* tag_data = tag->GetDataInstance();
String filename = tag_data->GetFilename(FILENAME_PARAM).GetString();
//2
GeData ge_data;
tag->GetParameter(FILENAME_PARAM, ge_data, DESCFLAGS_GET_PARAM_GET);
String filename = ge_data.GetFilename().GetString();
The first filename gets the value correctly, while the second filename string appears empty.
Why GetParameter doesn't return the value correctly ?
Thank you.