Update README.md

This commit is contained in:
Jeffreytsai1004 2025-01-15 03:36:07 +08:00
parent 0137fd24b6
commit 685ecd1980

View File

@ -1,61 +1,48 @@
#### 1 如果你有之前的版本,请将文件移至其他位置 ### 1 - 从 "github.com/EpicGames/MetaHuman-DNA-Calibration" 下载 Epic Game's DNA Calibration "版本" 1.1.0
#### 2 现在 Maya 2022 和 2023 使用相同的 DNA Calibration ### 2 - 将文件路径设置为 C:\dna_calibration (推荐) 或其他位置。请记住该路径。
安装 DNA_Calibration 1.1.0 (https://github.com/EpicGames/MetaHuman-DNA-Calibration/archive/refs/tags/1.1.0.zip) 将文件解压到 C 盘并将主文件夹重命名为 dna_calibration ### 3 - 复制所有 python 文件并粘贴到 "c:/Arts and Spells/Scripts" (推荐)
#### 3 进入下载的文件夹并在文本框中输入"cmd"。控制面板将会弹出 ### 4 - 将以下代码复制粘贴到架构编辑器命令行或通过脚本编辑器运行(选择 Python 选项卡)
输入 "python metapipe.py" import importlib
或者如果上述方法不起作用,可以选择其他解决方案
- 复制所有 python 文件并粘贴到 "c:/Arts and Spells/Scripts" (推荐)。
- 打开 "MetaPipeStudioSource.py" 并修改以下版本信息
* ROOT_DIR
* MAYA_VERSION
* dnaPath
* body_type
- 修改完成后将文件另存为 "dat.py" 并保存在 "c:/Arts and Spells/Scripts" 中
#### 4 - 复制插件
前往此路径 "Documents\Megascans Library\support\plugins\maya\7.0\MSLiveLink\DHI\plugins\Windows\2023" (7.0 是当前 MSLiveLink 版本,可能会变更) 并复制 embeddedRL4.mll 文件
#### 5 - 在 "Documents/Megascans Library/support/plugins/maya/7.0/MSLiveLink/" 中创建名为 "plug-ins" 的文件夹,并将文件粘贴其中。
#### 6 - 按照教程使用
#### 7 - 如果你有任何问题,欢迎在 Discord 或 Artstation 上询问!祝使用愉快!
身体构建自动代码:
```
import sys import sys
import maya.cmds as cmds
import os
from os import path as ospath
from sys import path as syspath
from sys import platform
sys.path.append("c:/Arts and Spells/Scripts") ROOT_DIR = //在此编辑// "c:/dna_calibration" //
import Body_Prep MAIN_PATH = "c:/Arts and Spells/Scripts"
Body_Prep.run() MAYA_VERSION = //在此编辑// "2023" //
``` ROOT_LIB_DIR = f"{ROOT_DIR}/lib/Maya{MAYA_VERSION}"
if platform == "win32":
LIB_DIR = f"{ROOT_LIB_DIR}/windows"
elif platform == "linux":
LIB_DIR = f"{ROOT_LIB_DIR}/linux"
else:
raise OSError(
"OS not supported, please compile dependencies and add value to LIB_DIR"
)
#### Metapipe 架构编辑器代码: # Adds directories to path
syspath.insert(0, ROOT_DIR)
syspath.insert(0, LIB_DIR)
sys.path.append(MAIN_PATH)
import MetaPipeFree
importlib.reload(MetaPipeFree)
``` # Dna Path
import sys dnaPath= //在此编辑// "C:/Users/Uzay/Documents/Megascans Library/Downloaded/DHI/h344NMUV_asset/1k/asset_source/MetaHumans/CustomDNA/SourceAssets/CustomDNA.dna" //
sys.path.append("c:/Arts and Spells/Scripts") CHARACTER_NAME = os.path.basename(dnaPath).split(".")[0]
import MetaPipeStudio MetaPipeFree.codeblock (dnaPath, ROOT_DIR, CHARACTER_NAME)
MetaPipeStudio.show_dna_edit_window() MetaPipeFree.show_dna_edit_window(dnaPath, ROOT_DIR)
```
修正混合变形安装: ### 5 - 前往路径 "Documents\Megascans Library\support\plugins\maya\7.0\MSLiveLink\DHI\plugins\Windows\2023" (7.0 是当前 MSLiveLink 版本,可能会变更) 并复制 embeddedRL4.mll 文件
* 1 - 复制 extractDerltas.py 并粘贴到 Maya 插件文件夹 --> documents/maya/"""2023/2022"""/plug-ins
* 2 - 复制 correctiveBlendshape.txt 文件中的文本并粘贴到 Maya 架构编辑器的 "MEL SCRIPT TAB" 中
* 3 - 在 Maya 中启用 extractDeltas 插件 - Windows - Settings and Preferences - Plugin Manager
* 4 - 将 bsIndex.py 文件复制粘贴到 C:/Arts and Spells/Scripts (推荐) 或修改架构编辑器中的 correctiveBlendshape 代码并设置你的路径。
### 6 - 在 "Documents/Megascans Library/support/plugins/maya/7.0/MSLiveLink/" 中创建名为 "plug-ins" 的文件夹,并将文件粘贴其中。
### 7 - 运行代码!祝使用愉快!如有任何问题,请在 Artstation 或 Discord 上询问...