THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 03/03/2010 at 06:18, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R11+
Platform: Windows ; Mac OSX ;
Language(s) : C.O.F.F.E.E ;
---------
Hoy, Hopefully a simple problem here:)
Atm I load objects into my scene from a folder on the computer.
However I'd like to load from the ContentBrowser.
If I make a "hard" path I get the object such as:
path->SetFullString("preset://SteadyCAMPRO303.lib4d/SCPROv303");
everything work fine.
But to follow the safe, platform independent way I'm trying to set a correct path,
such as:
var path;
var loaddocname = "NameOfObject";
// Look in UserPrefs -> Browser
{
println("Search User Browser");
path = GeGetStartupWritePath();
path->AddLast("library"); if(!GeFileExist(path,TRUE)) {println("User Library folder not found");return;}
path->AddLast("browser"); if(!GeFileExist(path,TRUE)) {println("User Browser folder not found");return;}
// path->AddLast("preset://"); if(!GeFileExist(path,TRUE)) {println("User Preset folder not found");return;}
path->AddLast("steadycampro303");
path->SetSuffix("lib4d"); if(!GeFileExist(path,TRUE)) {println("User steadycampro303.lib4d not found");return;}
path->AddLast(loaddocname);
}
but get an error that the lib file is not found.
I suppose the "preset://" part ( out commented here) is the culprit?
How to access the :// part in the path?
Cheers
Lennart