How do I access Recently open file path?

I need to access recently open file list on max and store
it in a variable so that I can access it with a button.
Specifically the second recently open file.

Any idea?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
victornsy's picture

rollout rout_tutor "Another

rollout rout_tutor "Another Rollout"
(
label lbl0 "This is a panel"
label lbl1 "For testing"

fn getFile = (
local maxINI
local T1

maxINI = getmaxinifile()

T1 = getINISetting maxINI "FileList" "File2"

mergeMaxFile T1 #select #prompt
)

button btnRecent "Recent File" width:125 tooltip:"I open the last open recent file"
on btnRecent pressed do
(
getFile()
)

)

victornsy's picture

Thank Lutteral will find out

Thank Lutteral will find out soon enough :)

lutteral's picture

In previous versions, at

In previous versions, at least until max2009, the list of recent max files was saved in the 3dsmax.ini file. You should use getmaxinifile() to find it, and getinisettings() to read the values.
In max 2011 (maybe 2010 too, I did not check), the list of recent documents are saved in a file named RecentDocuments.xml located in the same folder than the 3dsMax.ini. Check on how to parse xml in maxscript help to extract the data.

M

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.