I used the variable maxfilename to capture the name of my max file, but i don´t want the extention ".max", how can i do this.
Sorry my english, i am from brazil.
Thanks.
Forum topic · General Scripting
By agg3d · 2008-08-17
I used the variable maxfilename to capture the name of my max file, but i don´t want the extention ".max", how can i do this.
Sorry my english, i am from brazil.
Thanks.
agg3d · 2008-08-17
Thanks very much !!!!
Christopher Grant · 2008-08-17
Welcome to ScriptSpot!
You can find the answer to your question and more about fliename manipulation in the 3ds MAXScript help section "File Name Parsing" ...
To answer your specific question, use the function getFilenameFile in order to get a file name w/o extension.
getFilenameFile maxfilename