paya.examples.worm_rig#
- createWormRig(startLoc, endLoc, numJoints, baseMesh, squashMesh, stretchMesh)#
Worm rig example with per-point twist, pick-walk Bezier controls and driven blend shapes. Navigate to
paya/examples/worm_rig_layout.ma
and run this:import paya.examples.worm_rig as wr with r.Name('worm'): wr.createWormRig('locator1', 'locator2', 16, 'base', 'squashed', 'stretched')
- Parameters
startLoc – a locator to mark the root of the worm spine
endLoc – a locator to mark the tip of the worm spine
numJoints – the number of spine joints to generate
baseMesh – the main worm body
squashMesh – a blend shape target for the ‘squashed’ state
stretchMesh – a blend shape target for the ‘stretched’ state