Simple API example?

If you have problems understanding something or getting started, ask here

Moderator: joepal

Re: Simple API example?

Postby SCMagi » Thu Sep 07, 2023 1:40 pm

The MakeHuman source code should be available in your MakeHuman installation directory. You will need to find the directory containing the MakeHuman Python code. It should contain the necessary modules and classes you need to interact with MakeHuman programmatically, including those related to the company information API.

In your Python script, you need to import the necessary MakeHuman modules to interact with the software, including the company information API. You mentioned trying to import the "core" module, but you encountered issues. Make sure you're using the correct module name and that the module is in your Python path.

Assuming the "core" module is what you want to use, including the company information API, you should import it like this:
from core import G

Your Python script should be in the same directory as the MakeHuman source code or in a directory where Python can find the MakeHuman modules, including those related to the company information API. If you place your script in the same directory as MakeHuman's main Python script (e.g., makehuman.py), it might help.
User avatar
SCMagi
 
Posts: 1
Joined: Thu Apr 08, 2021 11:01 am

Previous

Return to Newbies

Who is online

Users browsing this forum: No registered users and 1 guest