by Tugpsx » Mon Jan 06, 2014 7:05 am
Tugpsx
Mon Jan 06, 2014 7:05 am
Yes that would be the idea. I think most users may only run this script occasionally but some of us have directories where all our projects are stored and it would be great if it remembers its last location.
I think you gave an example in a previous script.
-- global variable that holds the output path
OUT_PATH = nil
-- choose an output file
local ret = octane.gui.showDialog
{
type = octane.gui.dialogType.FILE_DIALOG,
title = "Choose the output file",
wildcards = "*.png",
save = true,
}
-- if a file is chosen
if ret.result ~= "" then
renderButton:updateProperties{ enable = true }
fileEditor:updateProperties{ text = ret.result }
OUT_PATH = ret.result
else
renderButton:updateProperties{ enable = false }
fileEditor:updateProperties{ text = "" }
OUT_PATH = nil
end
Dell Win Vista 32 | NVIDIA Quadro NVS135M | Core2 Duo T7500 2.20GHz | 4GB
CyberPowerPC Win 7 64| NVIDIA GTX660Ti (3G) GTX480(1.5G) | 16GB