JezUK
October 14, 2017, 8:33am
1
VRayLog.txt is saved in %TEMP% folder, but I’d like to know how to change this so that it will always default to the Project Folder.
Is there a syntax for ‘current’ project folder ? (rather than everytime going into the Render Dialog Box and manually choosing the Project Folder) ?
Thanks.
Miro
October 24, 2017, 2:17pm
2
Maybe this short script would be useful:
logSavePath = pathConfig.getCurrentProjectFolder() + maxFileName + "_VRayLog.txt";
renderers.current.system_vrayLog_file = logSavePath;
JezUK
March 5, 2018, 7:37pm
3
Thanks for this Miroslav,
Please can you tell me how to refine this script ?
currently it will make;
c:\project_foldermaxfile,
And I’d like it to make
c:\project_folder\maxfile
Many thanks.
JezUK
March 5, 2018, 8:10pm
4
It’s okay, good ole Morne kindly helped me out;
logSavePath = pathConfig.getCurrentProjectFolder () + @“” + “VrayLog.txt”;
renderers.current.system_vrayLog_file = logSavePath;
Will do it
Miro
March 8, 2018, 5:34pm
5
Nice. Thanks for sharing the amended script.
JezUK
March 9, 2018, 4:58am
6
I’ve just learned (thanks again Morne !) that when putting code online, if it isn’t placed within code tags, certain characters could be missing (there should be a \ between the double-quotes) - this is the correct code below;
logSavePath = pathConfig.getCurrentProjectFolder () + @"\" + "VrayLog.txt";
renderers.current.system_vrayLog_file = logSavePath;
JezUK
September 2, 2023, 11:17am
7
Wondering if there’s anyone out there that can fix this for 2023, that code throws up errors, first with that @“” code, and further (I think it didn’t like system_vrayLog_file) if you take it out (not that I know what I’m doing…)
JezUK:
Wondering if there’s anyone out there that can fix this for 2023, that code throws up errors, first with that @“” code, and further (I think it didn’t like system_vrayLog_file) if you take it out (not that I know what I’m doing…)
Works fine on my end. What errors are you getting? Is V-Ray the active render engine?