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

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
agg3d's picture

Thanks very much !!!!

Thanks very much !!!!

Christopher Grant's picture

Welcome to ScriptSpot! You

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.