mgear.rigbits.proxySlicer module
Rigbits proxy mesh slicer.
Creates proxy geometry for a skinned object by splitting its faces into groups based on dominant skinCluster influence weights. Uses OpenMaya2 for batch weight queries (5-10x faster than per-vertex cmds.skinPercent on production meshes).
- mgear.rigbits.proxySlicer.slice(parent=False, oSel=None, *args)
Create proxy geometry from skinned objects.
Splits each mesh into pieces based on dominant skinCluster influence per face. Each piece is either parented directly under its influence joint or placed under a ProxyGeo group with a matrix constraint.
Supports multiple selection. If
oSelis a list, all meshes are processed. If None, uses the current selection.- Parameters:
parent (bool) – If True, parent proxies under their influence joints. If False, keep under ProxyGeo group with world-space matrix constraints.
oSel (str or list) – Name(s) of the object(s) to process. If None, uses the current selection.