ScriptSpot

Forum topic · General Scripting

Syntax Error crashes MAXScript completely

By br0t · 2011-07-13

Description

Hi,
I often found myself in a situation where I execute some code that has a small typo in it, e.g. I missed a parenthesis or forgot an " or a \ somewhere. Usually it throws an error in the listener, I correct it and everything is fine. But some times, nothing happens, and the listener / editor wont do anything from that point on. Evaluating code will have no more effect, the only way to fix it that I found is to restart max. Is there any way to fix that? I tried gc() , resetting the scene...didnt help.

For example, this line will crash MAXScript for my current max session completely, because of the missing closing parenthesis at the end:

for i=1 to 100 do (box position:[0,i*30,0] height:(i*15) wirecolor:red

Is restart the only way to fix this? It is so annoying.
Cheers

Comments (3)

Swordslayer · 2011-07-13

I guess you've already tried pressing ESC while the listener is active?

br0t · 2011-07-13

No I have not! And it f**king works! You made me feel really dumb but happy, thanks!!!

Swordslayer · 2011-07-13

It happens all the time. Anyway, nice to hear about the happy part of this experience :)