This command can be used to replace the geometry which is already connected to deformers with a new geometry. The weights on the old geometry will be retargeted to the new geometry.
This flag controls the state of deformers other than skin deformers after the substitution has taken place. If the flag is true then non-skin deformer nodes are left in a disabled state at the completion of the command. Default value is false. |
|||
newGeometryToLayer (ngl) | bool | ||
|
|||
oldGeometryToLayer (ogl) | bool | ||
|
|||
reWeightDistTolerance (wdt) | float | ||
Specify the distance tolerance value to be used for retargeting weights. While transferring weights the command tries to find the corresponding vertices by overlapping the geometries with all deformers disabled. Sometimes this results in selection of unrelated vertices. (Example when a hole in the old geometry has been filled with new vertices in the new geometry.) This distance tolerance value is used to detect this kind of faults and either ignore these cases or to vary algorithm to find more corresponding vertices.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
retainOldGeometry (rog) | bool | ||
|
Derived from mel command maya.cmds.substituteGeometry
Example:
import pymel.core as pm
import maya.cmds as cmds
# substitute the smooth skinned outPutGeom with newInputShape.
#
pm.substituteGeometry( 'outPutGeom', 'newInputShape' )