pense-bête de bruno sanchiz

Accueil > programmes > makehuman

makehuman

Publié le 23 octobre 2023, dernière mise-à-jour le 14 juillet 2024, 16 visites, visites totales.

installation

d’après https://github.com/makehumancommunity/makehuman

sudo apt-get install git git-lfs python3-qtconsole python3-jupyterlab-server python3-jupyterlab-pygments   python3-opengl python3-pyqt5 python3-pyqt5.qtopengl python3-pyqt5.qtsvg
mkdir -p /opt/makehuman-2.0
cd /opt/makehuman-2.0
git clone https://github.com/makehumancommunity/makehuman.git 
cd makehuman/makehuman
python3 download_assets_git.py 
for i in {models,proxies,targets};do python3 compile_$i.py;done
cd plugins
for i in {community-plugins-mhapi,community-plugins-assetdownload,community-plugins-socket,makehuman-plugin-for-blender};do wget -c https://github.com/makehumancommunity/$i;done

créer l’alias
alias makehuman='python3 /opt/makehuman-2.0/makehuman/makehuman/makehuman.py'

plugins

  1. On met le plugin dézippé dans blender-3.6.5-linux-x64/3.6/scripts/addons/
  2. On l’active ( on cherche MPFB dans les addons, on l’active, on choisit dossier ..../makehuman/ )
  3. On rédémarre blender , N donne l’accès

Deux solutions :

  1. Soit dans makehuman, on choisit un model, et on coche community::socket puis dans blender, on clique sur MPFBc2.0-a3::New Human::From MakeHuman::Import human
  2. Soit dans blender , on clique sur MPFBc2.0-a3::New Human::From presets::Import MHM

plugins makehuman et blender

http://www.makehumancommunity.org/content/plugins.html

plugins makehuman::makeclothes et blender

  • installation :
    Le script sera à mettre dans un dossier genre blender-3.6.5-linux-x64/3.6/scripts/addons/

https://static.makehumancommunity.org/assets/creatingassets/makeclothes/introduction.html

  • makeclothes : check clothes
  • makeclothes : on met un NOM
  • makeclothes : qui va copier dans makehuman/v1py3/data/..../NOM/ ; fichiers NOM.mhclo, NOM.mhmat, NOM.mhpxy, NOM.npz, NOM.obj

vêtements et autres ( assets )

https://static.makehumancommunity.org/assets/assetpacks.html

On télécharge les zip, on les dézippe dans
makehuman/v1py3/data ou /opt/makehuman-2.0/makehuman/makehuman/data/ (si programme dans /opt/makehuman-2.0/makehuman/makehuman/makehuman.py )
qui contient clothes, community-assets, custom, expressions, eyebrows, eyelashes, eyes, hair, packs, poses, proxymeshes, rigs, scenes, skins, special_poses, teeth, tongue

wget -c https://static.makehumancommunity.org/assets/assetpacks.html;
for i in $(egrep "/assets/assetpacks/.*.html" assetpacks.html|sed 's#.*href="/assets\(.*html\).*#https://static.makehumancommunity.org/assets\1#' |grep "[0-9]\.html");do  wget -c "$i" ; done;
wget -c $(grep 'a href="http[^"]*.zip"' *html  |sed -e 's#.*a href="\(http.*.zip\)".*#\1#')

Les images des assets :

wget -c https://static.makehumancommunity.org/assets/assetpacks.html;
for i in $(egrep "/assets/assetpacks/.*.html" assetpacks.html|sed 's#.*href="/assets\(.*html\).*#https://static.makehumancommunity.org/assets\1#' |grep "[0-9]\.html");do  wget -c "$i" ; done
for i in *.html;do rep="$(echo $i|sed 's#.html##')";mkdir -p "$rep";cat "$i" |egrep 'class="noborder lazy lightbox noshadow figure-image" loading="lazy"'  |sed 's#.*src="\([^"]*\)".*#\1#'|while read fichier;do wget -c "https://static.makehumancommunity.org/assets/assetpacks/""$fichier" -O "$rep"/"$fichier" ; done;done

Les html joints permettent de retrouver le bon asset à télécharger

[bruno sanchiz]