I need to write a python script in order to import .mhx file and management it. I don't if it is possible to do that or no? Any help?
Download the make human blender tools from the make human website.
Open the zip. It will create a "blendertools" folder where you opened it.
Install the make human scene importer script: blendertools\mhx_importer\import_scene_mhx.py
Once the plugin is installed, this command will become available to you via python:
bpy.ops.import_scene.makehuman_mhx(filter_glob="*.mhx", filepath="", scale=1, advanced=False, enforce=True, mesh=True, proxy=True, cage=False, clothes=True, shapekeys=True, drivers=False, diamond=False, rigify=True)
For some reasons the newer version of MakeHuman (1.1.x) have removed the .mhx export option! Somebody has developed the MHX2 plugin which you can download from here or from the BitBucket repo. Then following the instructions on the README file:
- copy the 9_export_mhx2 folder to the MakeHuman plugins folder. For example on macOS it is in
- copy the import_runtime_mhx2 folder to the Blender addons folder. On my macOS it is on
- The you may follow these instructions to activate the plugin on Blender
After that you can export as mhx2 and then directly import in Blender.