MeshInfo/README.md

1.6 KiB

CGCG 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