How to get the name of the source .max file on export.

How to get the name of the source .max file on export.

Anonymous
Not applicable
286 Views
2 Replies
Message 1 of 3

How to get the name of the source .max file on export.

Anonymous
Not applicable
Hello,

I already have an exporter written but I have a simple problem which I can't seem to figure out. How do I get the name of the .max file that is currently loaded using the c++ 3dsmax api?

Thanks!
0 Likes
287 Views
2 Replies
Replies (2)
Message 2 of 3

Steve_Curley
Mentor
Mentor
Does the SDK provide access to the Maxscript System Globals? If so, then "maxFileName" should provide what you need. Beyond that I can't help (no SDK here).

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 3 of 3

Anonymous
Not applicable
You Can:

TSTR strMaxPath = GetCOREInterface()->GetCurFilePath();
TSTR strPath, strName, strExt;
SplitFilename(strMaxPath, &strPath, &strName, &strExt);
0 Likes