Select all faces with Mareial ID equal to selected one.
Work with base Poly/Mesh & Edit/Select Poly/Mesh Modifiers.
Work on currently selected object/modifier in the modifier stack.
Original request (here)
The script is tested in Max 9/2009/2011
Before execute the script, select your base object or
desired modifier (one of 4 supported) in the stack.
Also for better control, be sure just one face is selected.
Calling Edit Poly modifier methods from MaxScript
works very unstable at my station, results varied all the time,
and this is the reason to avoid it in my scripts, but
its here though to make the script more complete and
with hope you'll have better luck with it than me.
So you're warned ;)
However, I hope you appreciate my efforts
and all the comforts that come from this macros.