I think I broke Max, need help :)

Hey All,

First off, I don't know how to script really, just enough to mash some basic stuff together but I think I might have caused some issues that I can't figure out how to resolve.

I'll try not to get too tl;dr on you, but at some point near the end of putting some simple scripts together I started to notice that Max will frequently lock up (every few clicks or so) and hang for anywhere from 5-10 seconds before allowing me to do anything. I can usually click on the Windows taskbar to free it up immediately though. One thing that might be worth noting is that if it does lock up and I make a marquee selection while it is in this state, it will complete the action once it becomes responsive again.

Anyhow, if you think you might be able to help root out the problem I'll be happy to answer whatever questions I can and post the scripts I made. Below are the ones I was working on before I noticed this issue.

actionMan.executeAction 0 "268"  -- Tools: Isolate Selection Toggle
 
macros.run "shultz" "SplitHardEdges"
 
$.material=undefined
 
macros.run "Export" "Exporter"
resetxform $;
maxOps.CollapseNode $ off;
modPanel.addModToSelection (Normalmodifier flip:true)
maxOps.CollapseNode $ off;