Select By Material ID
--------------------- v.1.1

Author : Panayot (Anubis) Karabakalov
WebSite: http://project3d.narod.ru
Created: 2011.09.28
Edited : 2011.09.29
Version: 3ds Max 2008 and higher or AVG (Avguard Extensions) for previous
Tested : in 3ds Max 9 / 2009 / 2011
Purpose: user request:
	 http://www.scriptspot.com/forums/3ds-max/general-scripting/select-by-id-shortcut

Description:
	 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
	 (which make it usage quite flexible).

Usage Notes:
	 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.

Warning Notes:
	 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.

Best Regards,
Anubis


