ScriptSpot

Forum topic · General Scripting

How can i remove the extention ".max" from the variable maxfilename

By agg3d · 2008-08-17

Description

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.

Comments (2)

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