On 31/10/2013 at 10:58, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 13
Platform: Windows ;
Language(s) : C++ ;
---------
Hi,
I can't get the Content Browser to launch with the .lib4d/User/ folder selected by default.
I can successfully launch the CB to any other folder if it's a regular folder. But this .lib4d stuff is different.
The docs seem to indicate that I'm supposed to use URLs. But I can't get it to work:
Example:
Filename user_dir = "preset://user.lib4d/Objects/Cube";
SDKBrowserURL myUrl = SDKBrowserURL(user_dir);
GePrint(myUrl.GetString()); // prints file://localhost/preset://user.lib4d/Objects/Cube
SDKBrowser *cb = NULL; //Create a Content Browser instance
Bool exists = cb->ExistsPreset(myUrl); //Returns 0...It doesn't find the objects directory even though it exists!!
GePrint(LongToString(exists));
cb->OpenNewBrowser(myUrl, 0); //Supposed to open the Content Browser window at specific directory..But fails!!
What am I doing wrong?
-ScottA