You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Quixel Bridge](https://docs.metahuman.unrealengine.com/en-US/downloading-metahumans-with-quixel-bridge/), and Bifrost in UE5.
6
6
7
7
MetaHuman DNA Calibration is a set of tools used for working with MetaHuman DNA files, bundled into a single package. We wanted to share this code to help users customize DNA files so they can better integrate the characters they create into their games and experiences.
8
8
MetaHuman DNA Calibration tools are provided in a GitHub repository located at this address.
@@ -35,9 +35,12 @@ To use these tools, you should be familiar with:
35
35
- Prune blendshapes.
36
36
- Remove all blend shape data.
37
37
38
+
An overview of the MetaHuman DNA file format can be found [`here`](/docs/dna.md).
39
+
40
+
**Note**: DNACalib library allows removal and renaming of any joint. However, the following joints are used for connecting head with body and should not be removed or renamed: neck_01, neck_02, FACIAL_C_FacialRoot.
38
41
39
42
## External Software Dependencies
40
-
DNACalib's Python wrapper is compiled against Python 3.7. Pre-compiled binaries for Windows and Linux (both 64-bit) are part of the repository.
43
+
DNACalib's Python wrapper is compiled against Python 3.7 and 3.9. Pre-compiled binaries for Windows and Linux (both 64-bit) are part of the repository.
41
44
If you are using a different version of Python, you must recompile it. Any Python 3 version should be fine.
42
45
If a user has a different platform or architecture, the library and its dependencies must be compiled.
43
46
@@ -52,37 +55,86 @@ Python 2 is not supported.
52
55
53
56
DNACalib can be used in C++ projects as a C++ library.
54
57
55
-
DNACalib Python wrapper can be used in Python 3.7, `mayapy` (Maya's Python interpreter), or Maya 2022.
58
+
DNACalib Python wrapper can be used in Python 3.7 and 3.9, `mayapy` (Python interpreter shipped with Maya) shipped with Maya.
59
+
Supported Maya versions are 2022 and 2023.
60
+
61
+
Note: Maya 2022 is bundled with Python 3.7, Maya 2023 is bundled with Python 3.9.
62
+
63
+
## Environment Setup
64
+
65
+
In order to use MetaHuman DNA Calibration in your scripts, you need to:
66
+
- have Python3 installed, see [note](README.md#external-software-dependencies),
67
+
- add MetaHuman DNA Calibration location to `MAYA_MODULE_PATH` system variable (if you want to use MetaHuman DNA Calibration in Maya)
68
+
69
+
70
+
If you plan to run the script from command line:
56
71
72
+
- in case of Maya's interpreter (mayapy) you will have to initialize maya with:
73
+
74
+
```python
75
+
import maya.standalone
76
+
maya.standalone.initialize()
77
+
```
78
+
79
+
- in case of python interpreter you will have to add the following on top of your script:
"OS not supported, please compile dependencies and add value to LIB_DIR"
95
+
)
96
+
97
+
# Adds directories to path
98
+
syspath.insert(0, ROOT_DIR)
99
+
syspath.insert(0, LIB_DIR)
100
+
```
101
+
102
+
NOTE:
103
+
If running on Linux, please make sure to append the LD_LIBRARY_PATH with absolute path to the `lib/Maya2022/linux` or `lib/Maya2023/linux` directory before running the example:
DNAViewer can be used in `mayapy` (Maya's Python interpreter) or in Maya 2022, except [Propagating changes from Maya scene to dna](/examples/dna_viewer_grab_changes_from_scene_and_propagate_to_dna.py) which can be used just in Maya.
112
+
DNAViewer can be used in `mayapy` (Python interpreter shipped with Maya) or in Maya 2022, except [Propagating changes from Maya scene to dna](/examples/dna_viewer_grab_changes_from_scene_and_propagate_to_dna.py) which can be used just in Maya.
65
113
66
114
# Examples
67
115
Several Python examples are provided for reference and can be found in the **examples'** folder:
68
116
-[Showcase a few commands](/examples/dnacalib_demo.py)
69
117
-[Rename a joint](/examples/dnacalib_rename_joint_demo.py)
70
118
-[Create a small DNA from scratch](/examples/dna_demo.py)
119
+
-[Read binary DNA and write it in a human readable format](/examples/dna_binary_to_json_demo.py)
71
120
-[Create a new DNA from an existing one by extracting specific LODs](/examples/dnacalib_lod_demo.py)
72
121
-[Remove a joint](/examples/dnacalib_remove_joint.py)
-[Export FBX per LOD](/examples/dna_viewer_export_fbx.py)
77
127
-[Propagating changes from Maya scene to dna](/examples/dna_viewer_grab_changes_from_scene_and_propagate_to_dna.py)
78
128
129
+
Note: Examples are grouped in three groups: DNA, DNACalib, and DNAViewer. These names are embedded as prefixes: dna_, dnacalib_, and dna_viewer_.
130
+
79
131
## Example DNA files
80
132
[Two demo DNA files](data/dna) are provided for easier testing of this tool. Any DNA generated with [MetaHumanCreator](https://www.unrealengine.com/en-US/metahuman)
81
133
should work.
82
134
83
135
# Notes
84
136
If a user runs examples in Maya 2022, the value for `ROOT_DIR` should be changed and absolute paths must be used,
85
-
eg.`c:/dna_calibration` in Windows or `/home/user/dna_calibration` in Linux. Important: Use `/` (forward slash), Maya uses forward slashes in path.
137
+
e.g.`c:/MetaHuman-DNA-Calibration` in Windows or `/home/user/MetaHuman-DNA-Calibration` in Linux. Important: Use `/` (forward slash), Maya uses forward slashes in path.
86
138
87
139
See the [FAQ guide](docs/faq.md) for additional specifications.
0 commit comments