Solved by my friend Kurian!
Thanks Kurian!
Just needed this line afterwards:
mel.eval('addRecentFile("%s", "mayaAscii' % sel_file_dir)
On Thursday, June 5, 2014 3:54:52 PM UTC-7, Wesley Chandler wrote:
>
> Hi All,
>
> Please bear with me as I am new to python, coding, and to this group. I
> hope I am in the right place to ask such a question.
>
> I've made a UI that essentially runs a final command line to open a Maya
> file.
> *cmds.file(sel_file_dir, force=True, open=True, typ="mayaAscii",
> options="v=0")*
>
> The only problem is, when I go to file -> save-as. It does not open the
> default directory to the file that was opened but whatever my last use of
> the actual file -> open drop down menu.
>
> I've poked around in the google docs and searched the interwebs and even
> asked my more experienced python buddy. According to my buddy, it seems to
> be that Maya runs multiple fileDialog windows which some are accessible by
> scripting and others is at a OS level? I am running Windows 7 on Maya 2013
> if that makes a difference.
>
> Any suggestions to point me in the right direction? =)
>
> Much appreciated!
> Wesley
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/ab32a4f3-755c-4f20-b05d-ae73544e6b04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.