How to use API in my custom program ?

MakeHuman python API, python plugins, etc

Moderator: joepal

How to use API in my custom program ?

Postby sysu » Fri Sep 25, 2015 7:49 am

What I want to do is to generate and to obtain the model for use in my custom program (.net).
I will pass my parameters to makehuman,and then makehuman generate the model.How can I do that?
Thank you in advance!
sysu
 
Posts: 4
Joined: Thu Sep 24, 2015 3:29 pm

Re: How to use API in my custom program ?

Postby joepal » Fri Sep 25, 2015 8:07 am

MH isn't built for this. It's primarily a GUI application.

This said, the easiest way is probably to make a plugin that starts a socket server, and then speak with that from your third part application.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: How to use API in my custom program ?

Postby sysu » Fri Sep 25, 2015 8:32 am

joepal wrote:MH isn't built for this. It's primarily a GUI application.

This said, the easiest way is probably to make a plugin that starts a socket server, and then speak with that from your third part application.

In that way,can I pass parameters (info about human) and generate my model?
I just want to generate a model based on the parameters that I input,not based on the slider in GUI.
Last edited by sysu on Fri Sep 25, 2015 9:42 am, edited 1 time in total.
sysu
 
Posts: 4
Joined: Thu Sep 24, 2015 3:29 pm

Re: How to use API in my custom program ?

Postby joepal » Fri Sep 25, 2015 9:10 am

You have access to the whole internal makehuman API if you write a plugin.

http://www.makehumancommunity.org/api/
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: How to use API in my custom program ?

Postby sysu » Fri Sep 25, 2015 9:37 am

joepal wrote:You have access to the whole internal makehuman API if you write a plugin.

http://www.makehumancommunity.org/api/

I read this post(Calling MH as a library called from other programs http://www.makehumancommunity.org/forum/viewtopic.php?f=9&t=201).
I think that is what I want,calling MH as a library in my programs to generate a model.
But I can't download the demo(http://www.dedalo-3d.com/lab/makehuman_as_python_module.zip).
So I think that firstly MH must be complied as python module,then I call it in my program and use the APIs(which are introduced on http://www.makehumancommunity.org/api/) to generate my model.Is this right?
Where can I get some developer guide about this?
sysu
 
Posts: 4
Joined: Thu Sep 24, 2015 3:29 pm

Re: How to use API in my custom program ?

Postby joepal » Fri Sep 25, 2015 10:48 am

There are no such guides, as makehuman isn't built for this. MakeHuman is GUI application, not a library. If you want to modify the basic functionality, you're largely on your own.

You could take a look at https://bitbucket.org/MakeHuman/makehum ... dless/diff though.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: How to use API in my custom program ?

Postby duststorm » Mon Oct 05, 2015 2:57 pm

Before you spend too much time on it, though, determine whether you are fine with releasing your own code under the GNU license.
MakeHuman is open-source software and using it as a library in your own software requires you to release your own software with that same license as well.
MakeHuman™ developer
User avatar
duststorm
 
Posts: 2569
Joined: Fri Jan 27, 2012 11:57 am
Location: Belgium


Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest