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
- MPFB
- https://files2.makehumancommunity.org/releases/mpfb-2.0-a3.zip
http://www.makehumancommunity.org/content/plugins.html
http://static.makehumancommunity.org/mpfb/downloads.html
http://static.makehumancommunity.org/mpfb.html
http://www.makehumancommunity.org/wiki/FAQ:What_is_MPFB_(MakeHuman_Plugin_For_Blender)
- On met le plugin dézippé dans blender-3.6.5-linux-x64/3.6/scripts/addons/
- On l’active ( on cherche MPFB dans les addons, on l’active, on choisit dossier ..../makehuman/ )
- On rédémarre blender , N donne l’accès
Deux solutions :
- 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
- 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
- ancienne version : MakeHuman eXchange format 2
MHX2 (MH side)
MHX2, download mhx-mh-latest.zip - MPFB
MPFB
download , mpfb2-20240611.zip
Dézipper dans blender-x.y.z-linux-x64/a.b/scripts/addons/
plugins makehuman::makeclothes et blender
- téléchargement
- 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
- makehuman : On crée un humain : https://static.makehumancommunity.org/assets/creatingassets/makeclothes/introduction.html#how-to-load-a-human
- makeclothes : si on veut un vêtement d’un type connu, il vaut mieux choisir le vêtement à préparer puis extract from clothes
- sinon, on met tous les objets en type humain sauf un en clothes
- on doit assigner les vertex groups : https://static.makehumancommunity.org/assets/creatingassets/makeclothes/makeclothes_vertexgroups.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