pymel.core.animation.geomBind

geomBind(*args, **kwargs)

This command is used to compute weights using the GeomBind lib.

Flags:
Long name (short name) Argument Types Properties
bindMethod (bm) int ../../../_images/create.gif
 
Specifies which bind algorithm to use. By default, Geodesic Voxel will be used. Available algorithms are: 3 - Geodesic Voxel
falloff (fo) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Falloff controlling the bind stiffness. Valid values range from [0..1].
geodesicVoxelParams (gvp) int, bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Specifies the geodesic voxel binding parameters. This flag is composed of three parameters: 0 - Maximum voxel grid resolution which must be a power of two. (ie. 64, 128, 256, etc. ) 1 - Performs a post voxel state validation when enabled. Default values are 256 true. Flag can have multiple arguments, passed either as a tuple or a list.

maxInfluences (mi) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Specifies the maximum influences a vertex can have. By default, all influences are used (-1).

Derived from mel command maya.cmds.geomBind

Example:

import pymel.core as pm

# Compute geodesic voxel weights for skinCluster1 and skinCluster2. This
# command will create a geomBind node connected to the two skinClusters
# and their common bind pose. The geomBind node will maintain the
# geodesic voxel binding parameters used (ie: falloff, resolution, etc.)
#
pm.select( 'skinCluster1', r=True )
pm.select( 'skinCluster2', add=True )
pm.geomBind( bm=0, fo=0, mi=5 );

Previous topic

pymel.core.animation.flow

Next topic

pymel.core.animation.geometryConstraint

Core

Core Modules

Other Modules

This Page