Generate hash info for compare mesh data
Go to file
indigo bfee72623a Update README.md 2024-05-07 00:54:41 +00:00
cmake + Init Repo 2023-09-24 21:17:24 +08:00
src + Add query unset face ids (colorSet) 2023-09-24 21:17:35 +08:00
.hgignore + Init Repo 2023-09-24 21:17:24 +08:00
CMakeLists.txt + Add build script for windows 2023-09-24 21:17:31 +08:00
README.md Update README.md 2024-05-07 00:54:41 +00:00
make.bat + Add query unset face ids (colorSet) 2023-09-24 21:17:35 +08:00

README.md

Mesh Info plugin for Maya

The plugin is use to generate SHA1 hash from mesh data (vertex, uvs, point) for comparing

Command References

Synopsis: meshInfo [flags] [String...]
Flags:
   -q -query
 -ets -extendToShape  
   -f -file            String
  -ni -noIntermediate 
 -pth -ptHash         
 -ust -unset          
 -uvh -uvHash         
  -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

Generate vertcies hash from specify mesh

import maya.cmds as cmds
cmds.meshInfo('pCubeShape1', q=True, vtxHash=True)
# Result: a68ebf8ed559d32ee4ad702599acb0f38d3a4a90 # 

Generate uv hash from specify mesh

import maya.cmds as cmds
cmds.meshInfo('pCubeShape1', q=True, uvHash=True)
# Result: af2c9eff5f535b52f8b12332e900debb579a3bee # 

Dump all mesh without intemediate objects hashs into json file

import maya.cmds as cmds
cmds.meshInfo(vtxHash=True, uvHash=True, ptHash=True, 
              noIntermediate=True, 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
  • Maya SDK 2015+

Build command

Arguments:

make.bat [MayaVersion]

open command shell (CMD), change dir into repository directory, then run the follow command

make.bat 2020