Maya Snippets - 2026 edition
I’ve decided to create a post that will have a collection of my snippets. This page will be updated throughout the year. I’m currently serving as Pipeline for my 3rd Year Film, so I’m finding myself writing quick tools for my team!
Maya match size tool (wip)
A tool in maya similar to the Match size(y-min) tool in houdini. This ensures geometry will be level to the ground.
import maya.cmds as cmds
sel = cmds.ls( selection=True )
for s in sel:
bbox = cmds.exactWorldBoundingBox(s)
cmds.move(0, bbox[1], 0,
[f'{s}.scalePivot', f'{s}.rotatePivot'],
relative=False)
ref = cmds.polyPlane(n='matchPlane')
cmds.matchTransform(f'{s}',{ref[0]}, pos=True, rot=False, scl=False)
cmds.delete(ref)