Execute MaxScript return error line

 
 
 
Posted by:MaxScriptGuy
Data created:16 October 2013

Hi!

How can i get error message with line number if script has error?

Thank you.

I think the listener has a stream to which it prints errors but I never had to use it.

Whenever there is an error something like a SEHException is usually thrown so you can catch that. You can also check the return IValue of the script to see if it is undefined, OK, etc.

Marsel Khadiyev (Software Developer, EPHERE Inc.)