Batch model export

Discussions that concern the community rather than the makehuman software

Batch model export

Postby doc555 » Thu Feb 07, 2019 10:57 pm

Is there any way to batch export mhm files to fbx instead of I must load and export individually? I think for example command line solution or any other way.
Laszlo Maczo
founder, previs artist
Prewizards Studio
User avatar
Posts: 5
Joined: Fri Apr 28, 2017 3:54 pm
Location: Hungary

Re: Batch model export

Postby joepal » Fri Feb 08, 2019 8:43 am

No, there is no such functionality atm.

But I recently adapted the MHAPI plugin to have an export API: ... gins-mhapi

With this, it should be reasonably easy to write a script (for example in the utility->scripting tab) to iterate over files in a directory and export them.

This is a code outline and not tested:

Code: Select all
from core import G
mhapi =
human = mhapi.internals.getHuman()

human.load("/full/path/to/mhm/myHuman.mhm", True)

Note that this currently requires that you have manually downloaded MHAPI, as the exports subset of the API was added after the release of alpha 2.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
Posts: 3363
Joined: Wed Jun 04, 2008 11:20 am

Return to Community discussions

Who is online

Users browsing this forum: No registered users and 1 guest