Avatar Blender addon

Discussions about MHX2 and other plugins that are developed outside the scope of MakeHuman. Note that bug reports should go to the respective code projects and might go unseen here.

Moderator: joepal

Avatar Blender addon

Postby jsan3386 » Wed Apr 21, 2021 4:23 pm

I've created an addon for Blender using Makehuman model. https://jsan3386.github.io/avatar/

The addon was initially created to help me speed up the generation of a 3D human synthetic dataset. There are some parts that still need improvement, but for the moment is usable as it is.

The addon is integrated into Blender and allows to:
1) Load the model and change shape
2) Load cloth assets (model and textures) into the model
3) Transfer BVH motions to the model

Any comments, bugs, or help is appreciated!
Jordi.
jsan3386
 
Posts: 5
Joined: Mon Mar 19, 2018 4:02 pm

Re: Avatar Blender addon

Postby tomcat » Wed Apr 21, 2021 7:30 pm

Sorry, error :(

Image

Blender 2.92.0
Foreigners' reactions to Russian "Bird's Milk" candies
— Are your birds being milked?
— In Russia everyone is milked. Here even the zucchini is used to make caviar.
User avatar
tomcat
 
Posts: 336
Joined: Sun Sep 27, 2015 7:53 pm
Location: Moscow (Orcish Stan), The Aggressive Evil Empire

Re: Avatar Blender addon

Postby jsan3386 » Thu Apr 22, 2021 9:43 am

To install the addon first you need to follow these steps:

1. Create a file in the avatar github folder named config.py with the following content:
avt_path = "/path/of/root/avatar/github/project"
2. Go to Edit>Preferences>FilePaths and add to Scripts the path to the github avatar folder
3. Go to Edit>Preferences>Add-ons>Install and choose the file avatar_addon_b280.py
jsan3386
 
Posts: 5
Joined: Mon Mar 19, 2018 4:02 pm

Re: Avatar Blender addon

Postby tomcat » Thu Apr 22, 2021 2:33 pm

jsan3386 wrote:To install the addon first you need to follow these steps:

1. Create a file in the avatar github folder named config.py with the following content:
avt_path = "/path/of/root/avatar/github/project"
2. Go to Edit>Preferences>FilePaths and add to Scripts the path to the github avatar folder
3. Go to Edit>Preferences>Add-ons>Install and choose the file avatar_addon_b280.py

another error:
Image
Foreigners' reactions to Russian "Bird's Milk" candies
— Are your birds being milked?
— In Russia everyone is milked. Here even the zucchini is used to make caviar.
User avatar
tomcat
 
Posts: 336
Joined: Sun Sep 27, 2015 7:53 pm
Location: Moscow (Orcish Stan), The Aggressive Evil Empire

Re: Avatar Blender addon

Postby jsan3386 » Thu Apr 22, 2021 9:11 pm

Hi woodcat,

I modified part of the code where the different paths are load to the system so python can find the files. Probably it was a compatibility problem between Linux and Windows OS.
You will need to download the addon again. If problem persists I will check further.
jsan3386
 
Posts: 5
Joined: Mon Mar 19, 2018 4:02 pm

Re: Avatar Blender addon

Postby tomcat » Fri Apr 23, 2021 1:43 pm

jsan3386 wrote:You will need to download the addon again. If problem persists I will check further.
same errors :(

Win 7 x64 Max RU.
Foreigners' reactions to Russian "Bird's Milk" candies
— Are your birds being milked?
— In Russia everyone is milked. Here even the zucchini is used to make caviar.
User avatar
tomcat
 
Posts: 336
Joined: Sun Sep 27, 2015 7:53 pm
Location: Moscow (Orcish Stan), The Aggressive Evil Empire

Re: Avatar Blender addon

Postby jsan3386 » Mon Apr 26, 2021 8:46 pm

I can't replicate the error since I don't have a Windows OS.

The code currently depends on these directories:
sys.path.append(os.path.join(avt_path, "body"))
sys.path.append(os.path.join(avt_path, "dressing"))
sys.path.append(os.path.join(avt_path, "dressing", "materials"))
sys.path.append(os.path.join(avt_path, "motion"))
sys.path.append(os.path.join(avt_path, "motion", "retarget_motion"))

which I added in the sys path. Don't know the reason why this doesn't work with Windows.

I read some workaround might be add these paths in the PYTHONPATH variable, set PYTHONPATH=%PYTHONPATH%;C:\avt_path\;C:\avt_path\body;...

For a better integration in Blender I need to change several things in the code and this will take me some time, since I don't have much time right now.
jsan3386
 
Posts: 5
Joined: Mon Mar 19, 2018 4:02 pm


Return to MHX2 and other plugins developed outside MakeHuman

Who is online

Users browsing this forum: No registered users and 1 guest

cron