I've tried the path every way I can think of, the script works with "scenes/cornell/cornell.cfg, I've tried 3 different scripts, tried re ordering how the script is read
I can't find a python example so I'm clutching straws
cfg and scn paths
Re: cfg and scn paths
Here's how Dade uses it in luxcoreui: https://github.com/LuxCoreRender/LuxCor ... p.cpp#L249
Code: Select all
// Clear the file name resolver list
luxcore::ClearFileNameResolverPaths();
// Add the current directory to the list of place where to look for files
luxcore::AddFileNameResolverPath(".");
// Add the .cfg directory to the list of place where to look for files
boost::filesystem::path path(fileName);
luxcore::AddFileNameResolverPath(path.parent_path().generic_string());
Re: cfg and scn paths
yeah that's what I worked off
I've moved the py file to C:\Temp and it still fails
I've posted a simple example , I could be on this for 4 hours and I have no idea what to try next
I've moved the py file to C:\Temp and it still fails
I've posted a simple example , I could be on this for 4 hours and I have no idea what to try next
Re: cfg and scn paths
The script is working fine here, just change 'props = pyluxcore.Properties("cornell.cfg")' in 'props = pyluxcore.Properties("scenes/cornell/cornell.cfg")'.
If you use this:
Than I assume your current directory is where "scenes/cornell" is so you must use
If you use this:
Code: Select all
pyluxcore.AddFileNameResolverPath("scenes/cornell")
Code: Select all
props = pyluxcore.Properties("scenes/cornell/cornell.cfg")
Re: cfg and scn paths
oh man I feel so stupid... Got it, talk about setting myself up to fail
Thank you for your help Dade
And thanks B.Y.O.B.
Thank you for your help Dade
And thanks B.Y.O.B.