+ Add README
This commit is contained in:
parent
7b62d5715d
commit
502777b45c
|
|
@ -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 #
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue