Well I'm making a program you load a model into and select the faces you want to be certain materials. Then it will generate a script and the split models.

ScriptMaster