+ Add README

This commit is contained in:
indigo 2023-09-24 21:17:30 +08:00
parent 7b62d5715d
commit 502777b45c
1 changed files with 45 additions and 0 deletions

45
README.md Normal file
View File

@ -0,0 +1,45 @@
# 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 #
```