About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
getFilenameFile
you can use :
getFilenameFile "box.png"
(this returns "box")
Thanks for the reply
Thanks for the reply it worked great for a text i entered in maxscript.
but what if i input a random text lets say box101.png while the script is running how can i use the script to remove the .png? thanks :)
fileName.text = getFilenameFile ".jpg" tried that but it removed all of the text
varText = edtText.text -- get
getFilenameFile ".jpg" will return an emty string because getFilenameFile will remove the extention and ".jpg" is only an extention.
check maxscript help for more info. search for getFilenameFile.
Nice!!!!
Thanks allot it was exactly what i was looking for!!!!