[Closed] help please
hi all,
I am a newbee to this forum and this is my first post .
I am trying to learn max script through listener.
I want to reset max file through listener without giving an option for “YES” or “NO”
tried this resetmaxfile()=true
but listener gives error
how to do this !
thanks in advance.
I think the command
resetMAXFile #noprompt
should probably do the trick, although I dont have max infront of me, so cannot check…
Fire away if you have any more questions
Rich
hi laxmon,
resetmaxfile is a function call, so you dont need to provide a state like true or false. (resetmaxfile=false would do nothing so is kind of redundant!)
if you did, there wouldn’t be an equals sign, as the function will output the result you feed it according to any extra variables you passed it, like a node to operate on for example.
resetmaxfile() has an extra argument – #noprompt, which is what you are after. If you were putting the parentheses on the end of resetmaxfile, that means you are calling the function without any extra parameters. to specify no prompt, you remove the brackets and add the #noprompt switch. so,
[left]
[/left]
[left]resetMaxFile #noPrompt
[/left]
is what you should type in the listener.
It was a bit of a case of fingers on the buzzers for that particular question. But in retrospect I unacceptably sacrificed content for speed. Your answer is a lot more thorough
Rich
In the maxscript help, on the index tab type resetMAXFile and read all about it
Note: Be sure you aren’t in the 3dstudio max help. To get to the maxscript help, open the lisener window MAXScript->Listener, then in the listener goto help->help