class counterpart of mel function blendShape
This command creates a blendShape deformer, which blends in specified amounts of each target shape to the initial base shape. Each base shape is deformed by its own set of target shapes. Every target shape has an index that associates it with one of the shape weight values.In the create mode the first item on the selection list is treated as the base and the remaining inputs as targets. If the first item on the list has multiple shapes grouped beneath it, the targets must have an identical shape hierarchy. Additional base shapes can be added in edit mode using the deformers -g flag.
Adds a new base object to the deformer. This object will be deformed as targets are added for it and the deformation parameters change.
Parameters : |
|
---|
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.addBaseObject
Undo is not currently supported for this method
Adds a new target object for the given base object. The weight index says which of the deformer’s weight values will control this target’s affects on the base object. The full weight argument determines at what weight the target is in full effect. If a base object has no other targets and the weight is set to the ‘full weight’, then the base object will look just like the target object.
Parameters : |
|
---|
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.addTarget
Undo is not currently supported for this method
If the default behavior for insertion/appending into/onto the existing chain is not what you want then you can use this flag to force the command to stick the deformer node after the selected node in the chain even if a new geometry shape has to be created in order to do so. Works in create mode (and edit mode if the deformer has no geometry added yet).
Derived from mel command maya.cmds.blendShape
If the default behavior for insertion/appending into/onto the existing chain is not what you want then you can use this flag to force the command to stick the deformer node before the selected node in the chain even if a new geometry shape has to be created in order to do so. Works in create mode (and edit mode if the deformer has no geometry added yet).
Derived from mel command maya.cmds.blendShape
This command is used to specify that the new deformer node should be placed ahead (upstream) of existing deformer and skin nodes in the shape’s history (but not ahead of existing tweak nodes). The input to the deformer will be the upstream shape rather than the visible downstream shape, so the behavior of this flag is the most intuitive if the downstream deformers are in their reset (hasNoEffect) position when the new deformer is added. Works in create mode (and edit mode if the deformer has no geometry added yet).
Derived from mel command maya.cmds.blendShape
Get a list of all of the base objects for this deformer. The objects returned will be the deformed versions of the base objects.
Return type: | PyNode list |
---|
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.getBaseObjects
Returns the name of the deformer tool objects (if any) as string string ...
Derived from mel command maya.cmds.blendShape
Puts the deformation set in a deform partition.
Derived from mel command maya.cmds.blendShape
The specified object will be added to the list of objects being deformed by this deformer object, unless the -rm flag is also specified. When queried, this flag returns string string string ...
Derived from mel command maya.cmds.blendShape
Gets the origin space. It defines the point around which the differences in the geometry are calculated.
Return type: | BlendShape.Origin |
---|
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.origin
Set target object as the index target shape for the base shape base object. The full influence of target shape takes effect when its shape weight is targetValue. Parameter list: string: the base objectint: indexstring: the target objectdouble: target value
Derived from mel command maya.cmds.blendShape
Get a list of all of the target objects for the given base object that affect it based on the given weight index.
Parameters : |
|
---|---|
Return type: | PyNode list |
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.getTargets
Get the weight value at the given index. To be valid, a weight value should only be requested at index values returned by MFnBlendShapeDeformer::weightIndexList .
Parameters : |
|
---|---|
Return type: | float |
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.weight
Set the number of shape weight values.
Derived from mel command maya.cmds.blendShape
Indicate that the specified target should serve as an inbetween. An inbetween target is one that serves as an intermediate target between the base shape and another target.
Derived from mel command maya.cmds.blendShape
Return the number of weight values that this blend shape deformer has. The number of weight values is equal to the number of targets. Targets are either shapes in the dag or baked data on the blendShape node (when a target shape is deleted).
Return type: | int |
---|
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.numWeights
Inserts the new deformer in a parallel chain to any existing deformers in the history of the object. A blendShape is inserted to blend the parallel results together. Works in create mode (and edit mode if the deformer has no geometry added yet).
Derived from mel command maya.cmds.blendShape
Removes any points not being deformed by the deformer in its current configuration from the deformer set.
Derived from mel command maya.cmds.blendShape
Specifies that objects listed after the -g flag should be removed from this deformer.
Derived from mel command maya.cmds.blendShape
Remove a target object for the given base object. The weight index specifies the index at which target is connected. The full weight argument specifies at what weight the target is in full effect.
Parameters : |
|
---|
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.removeTarget
Undo is not currently supported for this method
The specified object will be added to the list of objects being deformed by this deformer object, unless the -rm flag is also specified. When queried, this flag returns string string string ...
Derived from mel command maya.cmds.blendShape
Sets the origin space. It defines the point around which the differences in the geometry are calculated.
Parameters : |
|
---|
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.setOrigin
Set target object as the index target shape for the base shape base object. The full influence of target shape takes effect when its shape weight is targetValue. Parameter list: string: the base objectint: indexstring: the target objectdouble: target value
Derived from mel command maya.cmds.blendShape
Set the weight value at the given index.
Parameters : |
|
---|
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.setWeight
Set the number of shape weight values.
Derived from mel command maya.cmds.blendShape
A base object may have more than one target using the same element of the blendShape’s ‘weights’ array. We refer to these as the base object’s “target items” for that weight index.
Parameters : |
|
---|---|
Return type: | int list |
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.targetItemIndexList
Return the array index numbers corresponding to the targets. The resulting index list will be the length of MFnBlendShape::numWeights. This method exists because the indices of the targets can be sparse. For example, if a target has been removed using Deform -> Edit BlendShape -> Remove.
Return type: | int list |
---|
Derived from api method maya.OpenMayaAnim.MFnBlendShapeDeformer.weightIndexList