Connect to make human api

MakeHuman python API, python plugins, etc

Moderator: joepal

Connect to make human api

Postby lukman_06 » Fri May 19, 2017 4:53 pm

Hi, i have create a script to connect to makehuman server socket ,but i could not find the right command to use can you help me .
lukman_06
 
Posts: 2
Joined: Fri May 19, 2017 4:49 pm

Re: Connect to make human api

Postby joepal » Fri May 19, 2017 6:38 pm

That is too little information to be able to answer.

What exactly is the problem?

Here's a simple example of how to connect to the socket and get a list of all available modifiers: https://github.com/makehumancommunity/c ... difiers.py
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am

Re: Connect to make human api

Postby lukman_06 » Fri May 19, 2017 8:06 pm

I mean ,i have used 1_Mhapi and 8_server_socket and copy it to plugin ,and i have made a program to connect to the socket but i don't know what command should i send to the makehuman socket to work
lukman_06
 
Posts: 2
Joined: Fri May 19, 2017 4:49 pm

Re: Connect to make human api

Postby joepal » Sat May 20, 2017 8:51 am

The socket server only exposes a very small subset of what is available in MHAPI. The sum total of what calls are available can be found inside the *ops.py files here: https://github.com/makehumancommunity/c ... ver_socket

(in the __init__ of each file is an array called "function" where available function calls are specified)

If there is a particular call you would like to add, a pull request or a patch for adding it is welcome.
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 4465
Joined: Wed Jun 04, 2008 11:20 am


Return to Python scripts

Who is online

Users browsing this forum: No registered users and 1 guest