Thank you DenisT for helping me out, it is really most appreciated.
I believe that I am not explaining correctly what I am wishing for so let me try another road.
Lets say that you create a Box, a Cylinder and a Torus on stage and then convert them to editable polys, now export them as obj’s. If you open that obj with a UV program/app you see that you have 3 groups (Box001, Cylinder001, Torus001) and 3 materials (wire_088199225, wire_140088225, wire_141007058).
The script I am looking for would be applied before I exported the above. It would automatically change the material wire_088199225 to material Box001, material wire_140088225 to material Cylinder001 and material wire_141007058 to material Torus001… or whatever those groups were named as then the materials would also be named as. The actual physical shader inside of Max is not important as I am applying Materials in another app. If it is easier to have everything made into a multi-sub object material so we don’t run out of material space, that is cool too.
It doesn’t matter if the group to material conversion is automatic (all groups even those hidden), or if it is to what’s selected on stage, or to what is physically on stage…whatever is easiest. If I had my druthers I would probably say for convert to what’s selected.
If by chance your already created script does what I just got done asking for, then my apologies I am too dense to make it happen. Could you provide a brief step by step?
Thanks again for your time and help.