This command allows you to change the soft modelling options. Soft modelling is an option that allows for reflection of basic manipulator actions such as move, rotate, and scale. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
compressUndo (cu) | int | ||
Controls how soft selection settings behave in undo: 0 means all changes undo individually1 means all consecutive changes undo as a group2 means only interactive changes undo as a groupWhen queried, returns an int indicating the current undo behaviour. |
|||
enableFalseColor (efc) | int | ||
|
|||
softSelectColorCurve (scc) | unicode | ||
Sets the color ramp used to display false color feedback for soft selected components in the viewport. The color curve is encoded as a string of comma separated floating point values representing the falloff curve CVs. Each CV is represented by 5 successive values: 3 RGB values (the color to use), an input value (the selection weight), and a curve interpolation type. When queried, returns a string containing the encoded CVs of the current color feedback curve. |
|||
softSelectCurve (ssc) | unicode | ||
Sets the falloff curve used to calculate selection weights for components within the falloff distance. The curve is encoded as a string of comma separated floating point values representing the falloff curve CVs. Each CV is represented by 3 successive values: an output value (the selection weight at this point), an input value (the normalised falloff distance) and a curve interpolation type. When queried, returns a string containing the encoded CVs of the current falloff curve. |
|||
softSelectDistance (ssd) | float | ||
|
|||
softSelectEnabled (sse) | int | ||
|
|||
softSelectFalloff (ssf) | int | ||
|
|||
softSelectReset (ssr) | bool | ||
|
|||
softSelectUVDistance (sud) | float | ||
|
Derived from mel command maya.cmds.softSelect
Example:
import pymel.core as pm
import maya.cmds as cmds
# Enable soft selection
pm.softSelect(sse=1)
# Setup global soft select with radius and curve
pm.softSelect(sse=1,ssd=2.0,ssc='0,1,2,1,0,2',ssf=2)