I want to query the file name so that I can add a postfix then save it as a new name. But I can't seem to figure out how to cast the current working file name into a variable.
Forum topic · Scripts Wanted
how to query the file name
By nycwtorres · 2009-01-27
Description
Comments (2)
Anton Berg · 2009-01-27
--this returns the filename of your current scene,
--if saved else it will return ""
maxFileName
-- this returns the path to this file
maxFilePath
--so
FullPathtoMyFile = (maxFilePath + maxFileName)
--should do the trick as long as you
--have saved your file somewhere
nycwtorres · 2009-01-27
Thanks.. the maxscript ref file is very hard to get info from. I appreciate it.