Description
A deformer that can drive subsets of a mesh with other meshes. Uses include driving a body with a blendshaped head or driving larger meshes with a heavily rigged subset of the mesh. This can increase performance as the heavy rigging isn’t affecting the larger mesh.
Node Reference
| Long Name | Type | Default |
|---|---|---|
| snapMesh Mesh to snap to. |
mesh | null |
| state Internal initialization flag. Should not be set. |
enum | 0 |
| vertexMapping Int array vertex mapping. Contains a vertex id on the snap mesh for each vertex on the base mesh. If the value is -1, no corresponding snap vertex was found. |
intArray | 0 |
Usage Notes
Create the Deformer
Select the base mesh, then the mesh to snap to:
import cvVertexSnap
deformer = cvVertexSnap.create(baseMesh=None, snapMesh=None, name='cvVertexSnap#')
"""
Creates an cvVertexSnap deformer.
Parameters:
baseMesh - baseMesh snaps to snapMesh
snapMesh - baseMesh snaps to snapMesh
name - Name of the deformer to create.
Returns:
The name of the created cvVertexSnap node.
"""
Once the you run the command, the deformer initializes its data structures. This can take a minute or two depending on how dense the mesh is.

