On 22/09/2014 at 10:12, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R15
Platform: Mac OSX ;
Language(s) : C++ ;
---------
Hi everyone,
I'm working on an internal C++ plugin that creates a cat4d file from a cvs file. To achieve this I am using the SDKBrowser class from lib_browser.h.
As I cannot find any example of how to work with SDKBrowser, I started knocking up simple code that walks an existing catalog structure. SDKBrowser::GetPresetAnnotation() works great to read an annotation, but I cannot seem to set an annotation using SDKBrowser::SetPresetAnnotation().
String annotation;
if (SDKBrowser::GetPresetAnnotation(db_index, url, annotation)) {
GePrint("GetPresetAnnotation: " \+ annotation); // This works
}
if (SDKBrowser::SetPresetAnnotation(db_index, url, String("test annotation"))) { // SetPresetAnnotation always fails!
SDKBrowser::UpdateNotification(airtransport_node);
SDKBrowser::GetPresetAnnotation(db_index, url, annotation);
GePrint("SetPresetAnnotation: " \+ annotation);
}
What am I doing wrong?
Thanks
Julien