MeshInfo/README.md

54 lines
1.3 KiB
Markdown

# CGCG Mesh Info plugin for Maya
The plugin is use to generate SHA1 hash from mesh data (vertex, uvs, point) for comparing
### Current Hash Data
* Mesh vertices
* Mesh uvs
* Mesh point position (object space)
### Command References
```
Synopsis: meshInfo [flags] [String...]
Flags:
-q -query
-ets -extendToShape
-f -file String
-ni -noIntermediate
-pth -ptHash
-uvh -uvHash
-vh -vtxHash
```
### Examples
Generate vertcies hash from specify mesh
```python
import maya.cmds as cmds
cmds.meshInfo('pCubeShape1', q=True, vtxHash=True)
# Result: a68ebf8ed559d32ee4ad702599acb0f38d3a4a90 #
```
Generate uv hash from specify mesh
```python
import maya.cmds as cmds
cmds.meshInfo('pCubeShape1', q=True, uvHash=True)
# Result: af2c9eff5f535b52f8b12332e900debb579a3bee #
```
Dump all mesh without intemediate objects hashs into json file
```python
import maya.cmds as cmds
cmds.meshInfo(vtxHash=True, uvHash=True, ptHash=True, noIntermediate
file='C:/Temp/mesh_info.json')
# Mesh info file exported : C:/Temp/mesh_info.json #
```
## How to build in windows
### Requirement
* Visual Studio 2012 or Build Tool C++ 2012 or higher
open command shell (**CMD**), change dir into repository directory, then run the follow command
```shell
make.bat 2020
```