Automating import-export process

If your topic doesn't fit anywhere else, put it here.

Moderator: joepal

Automating import-export process

Postby Ceath » Thu Sep 14, 2017 1:46 pm

Hello!

I've been looking for days trying to find an answer to my problem but I didn't really have much success in that, so I'm going to try my luck!

Basically, I have a .mhm file with specific measurements (which represents the model) and I need to export it in .FBX to use it in Unity afterwards. This sounds very simple, my issue is related to that. I need to automate that somehow, ideally on a server. I was able to write a script using the Scripting tool in MakeHuman which works just like I want it to, except there still needs to be a human doing it in the background. I want to know if it's possible and if so how it can be done? Or if you guys have another way to approach the problem.

I am aware that people have been working on a Command-line tool but, unless I understood it wrong, it doesn't do what I need?

Does anyone have an idea about this? Any help would be really really appreciated.
Ceath
 
Posts: 3
Joined: Thu Sep 14, 2017 1:07 pm

Re: Automating import-export process

Postby joepal » Thu Sep 14, 2017 7:36 pm

There are actually two command line tools:

* The command line pull request (https://bitbucket.org/MakeHuman/makehum ... dless/diff). This is intended for running MakeHuman headless, but doesn't help a whole lot with automation.
* The MHAPI + socket plugin + CLI collection (https://github.com/makehumancommunity/c ... master/cli). This allows running scripts from outside MH to communicate with a running instance. But it is far from finished.

Since it seems you have no problem with coding, I'd suggest taking a look at the latter to see if you can extend it with export functionality (currently it largely only supports applying modifiers and reading the mesh info). It'd still require a running instance of MakeHuman, but you would be able to launch exports in an automated way via the command line.

If you want to go really crazy, there is no theoretical barrier against calling the MakeHuman socket plugin from within Unity. It communicates via JSON over a local tcp socket, so doesn't really require python on the client end. In this case you could ignore the CLI scripts and only concentrate on extending MHAPI + socket plugin.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4473
Joined: Wed Jun 04, 2008 11:20 am


Return to General discussions about makehuman

Who is online

Users browsing this forum: No registered users and 1 guest