PDA

View Full Version : Last export path name [Max9]


erilaz
06-20-2007, 08:07 AM
I'm doing a log tool for mesh exports so i'm creating a callback for #postExport. The main problem is since it doesn't return a filesave string like the save callbacks do I can't grab the path to log to.

Is there any way to grab the last export path that was used? If you manually re-export it automatically takes you to the last place you saved, rather than the #export userpath directory. The former is the path I want.

I'm either execting that I will have to resort a custom script to replace the standard export, or someone to point out the code and therefore my stupidity for missing it. :D

erilaz
06-25-2007, 02:46 AM
Shall I assume it can't be done then? :D

ypuech
06-25-2007, 12:33 PM
I know you can hack Max menu so you can display your own custom dialog but this can be only done in C++.

davestewart
06-25-2007, 01:23 PM
sysInfo.currentdir always reflects the last directry that max accessed (from what I know, anyway) be that a file export, script open or a material's map source update, you can just grab that, can't you?

ypuech
06-25-2007, 01:30 PM
sysInfo.currentdir always reflects the last directry that max accessed (from what I know, anyway) be that a file export, script open or a material's map source update, you can just grab that, can't you?
Yes it works!

erilaz
06-26-2007, 03:03 AM
Sweet. Exactly what I was looking for. Thanks!

CGTalk Moderation
06-26-2007, 03:03 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.