IF YOU WANT TO EXPORT A MODEL, MAKE SURE THAT:

-The model you want to export is selected
-The model is Editable Mesh!
-The model has a material of type Multi\Sub-Object assigned to it, and sub-materials have different names!
-The model has UV Map, and all UV channels (if there are > 1) have the same ammount of vertices!

That's it.

Script made by SeriousAlexej

Tested on 3ds Max 9/3ds max 2010