Similar to the post below, today it took more than a minute or two to find this, which to me makes it warrant a post. This is useful for incremental save scripts, or anything else you may use it for.
Yes, you need to rename the current file first and then save it. There is no "save as" command in MEL. Rename current file to whatever you want, then save. Weird, but that's how it's done.
Besides the ramblings of a guy who likes to make things, Script Swell is a place to find MEL scripts, Maxscripts, Python tools and scripts for animators, cg artists, and anyone interested in improving their workflow and pipeline. The editor Jay Grenier is a technical artist currently residing in Burbank, CA.
"There are no limits. There are plateaus, but you must not stay there, you must go beyond them. If it kills you, it kills you. A man must constantly exceed his level." ~Bruce Lee
is it possible to save a new scene through MEl commands...
ReplyDeleteI trying for that pls help me
Yes, you need to rename the current file first and then save it. There is no "save as" command in MEL. Rename current file to whatever you want, then save. Weird, but that's how it's done.
ReplyDeleteis it possible to query without extension?
ReplyDeleteThis comment has been removed by the author.
ReplyDeletei found - basenameEx (`file -q -sceneName -shortName`);
ReplyDelete