Notifications
Clear all

[Closed] Prevent code editor window from opening on exception

 lo1

Does anyone know on any setting which prevents the maxscript code editor window from opening the offending file every time there’s an exception?

2 Replies

i don’t think this setting exists. But I believe that is possible to prevent opening the editor with mxs exception using a hook of max messages and max sdk.

I’m absolutely sure that the system uses ‘editfile’ method after a script execution fails.
By default this method open (unhide) the editor.

So we need (in theory):
#1 catch exception message
#2 catch open (show) editor message
#3 suspend open message if the editor closed and should be opened because of mxs exception

the problem: How to know all these messages IDs? … debug probably

 lo1

Thanks for the lead, I’ll investigate down that road.