[Maya-Python] List recent projects

254 views
Skip to first unread message

Marcus Ottosson

unread,
Oct 8, 2014, 7:46:59 AM10/8/14
to python_in...@googlegroups.com

Hi all,

Does anyone know if there is any way of getting a hold of the items under File -> Recent Projects or Recent Files?

Neither cmds.file nor cmds.workspace seem to do the trick, and the PyMEL docs isn't showing anything either.

Best,
Marcus

--
Marcus Ottosson
konstr...@gmail.com

Justin Israel

unread,
Oct 8, 2014, 2:17:46 PM10/8/14
to python_in...@googlegroups.com

I messed with that at my last studio but I don't remember exactly. It was via actual Mel procs, and not something exposed in the python API, I think. You make need to bust out some whatIs Mel commands to track down the source of that menu.

--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOA1Om0_RHXjF%3Ds%3DzEL4ttaYa%3DLiMA4cekP8AEt-%3DmYAhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

damon shelton

unread,
Oct 8, 2014, 2:29:44 PM10/8/14
to python_in...@googlegroups.com
it is stored in an optionVar

cmds.optionVar(q='RecentFilesList')

damon shelton

unread,
Oct 8, 2014, 2:31:40 PM10/8/14
to python_in...@googlegroups.com
hit send too soon
cmds.optionVar(q='RecentFilesList')
cmds.optionVar(q='RecentProjectsList')

these return 0 if nothing in list

Justin Israel

unread,
Oct 8, 2014, 2:37:17 PM10/8/14
to python_in...@googlegroups.com

Ah yea that rings a bell now

Marcus Ottosson

unread,
Oct 8, 2014, 3:21:34 PM10/8/14
to python_in...@googlegroups.com
Brilliant, thanks Damon. 

Do you know if there's some reference to which variables are available as option-vars?


For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Justin Israel

unread,
Oct 8, 2014, 5:00:46 PM10/8/14
to python_in...@googlegroups.com

Marcus Ottosson

unread,
Oct 9, 2014, 3:19:45 AM10/9/14
to python_in...@googlegroups.com
Goldmine! Too bad they aren't updated at run-time, at least not some of them, like polyCount. But I can see why and it's still amazing. Thanks!


For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Reply all
Reply to author
Forward
0 new messages