! Modify README.md

This commit is contained in:
indigo 2023-09-24 21:17:37 +08:00
parent 6399e88618
commit 5b67c356e7
1 changed files with 11 additions and 7 deletions

View File

@ -1,12 +1,6 @@
# CGCG Mesh Info plugin for Maya # CGCG Mesh Info plugin for Maya
The plugin is use to generate SHA1 hash from mesh data (vertex, uvs, point) for comparing 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 ### Command References
``` ```
Synopsis: meshInfo [flags] [String...] Synopsis: meshInfo [flags] [String...]
@ -16,9 +10,19 @@ Flags:
-f -file String -f -file String
-ni -noIntermediate -ni -noIntermediate
-pth -ptHash -pth -ptHash
-ust -unset
-uvh -uvHash -uvh -uvHash
-vh -vtxHash -vh -vtxHash
``` ```
### Generate Hash Data
*`-vh, -vtxHash`* Mesh vertices
*`-uvh, -uvHash`* Mesh uvs
*`-pth, -ptHash`* Mesh point position (object space)
### Unset Face Ids (`-unset`)
*`-unset`* This argument is query unset color sets face ids on mesh, use for **`AbcExport`** with *`-writeColorSets`* argument, to remove vertex color on unset face ids.
### Examples ### Examples
Generate vertcies hash from specify mesh Generate vertcies hash from specify mesh
```python ```python
@ -37,7 +41,7 @@ cmds.meshInfo('pCubeShape1', q=True, uvHash=True)
Dump all mesh without intemediate objects hashs into json file Dump all mesh without intemediate objects hashs into json file
```python ```python
import maya.cmds as cmds import maya.cmds as cmds
cmds.meshInfo(vtxHash=True, uvHash=True, ptHash=True, noIntermediate cmds.meshInfo(vtxHash=True, uvHash=True, ptHash=True, noIntermediate=True
file='C:/Temp/mesh_info.json') file='C:/Temp/mesh_info.json')
# Mesh info file exported : C:/Temp/mesh_info.json # # Mesh info file exported : C:/Temp/mesh_info.json #
``` ```