So I have a basic maxscript or command that I am building out a context sensitive script with later on which is here:
if selection.count >= 1 do<br> collapsestack selection
Which works as intended when Evaluating it through the script editor. It will collapse the stack no matter what down to my editable poly. Which is what I want.
Now if I make into this:
macroScript Convert_EditPoly<br>category:"ZMTools"<br>(<br> if selection.count >= 1 do<br> collapsestack selection<br>)
It will function as intended if I have anything other than an "Edit Poly" modifier at the top of the stack. If the "Edit Poly" is at the top of the stack it will not go through. No error, no code, nothing. Mind you the script ran from evaluate functions just fine with "Edit Poly" at the top of the stack.
Am I misunderstanding some basic thing here with the functionality of macroscripts? I have also tried this with the following:
macros.run "Modifier Stack" "Convert_to_Poly"
Which follows the same behavior. Attempting to just make a hotkey for convert to poly results in the same behavior as well.
Replies
Max will respect the individual modes within Edit Poly right? As long as I write the script correctly that is. It won't just default to Edit Poly mode? Or does the active mode just need to be disabled for context-sensitive stuff like that?