Go to: Synopsis. Return value. Related. Flags. Python examples.
softSelect([compressUndo=int], [enableFalseColor=int], [softSelectColorCurve=string], [softSelectCurve=string], [softSelectDistance=float], [softSelectEnabled=int], [softSelectFalloff=int], [softSelectReset=boolean], [softSelectUVDistance=float])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
softSelect is undoable, queryable, and editable.
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.
None
In query mode, return type is based on queried flag.
displayAffected, displayColor, displayCull, displayLevelOfDetail, displayPref, displayRGBColor, displaySmoothness, displayStats, displaySurface, hide, refresh, showHidden, toggle
compressUndo, enableFalseColor, softSelectColorCurve, softSelectCurve, softSelectDistance, softSelectEnabled, softSelectFalloff, softSelectReset, softSelectUVDistance
Long name (short name) |
Argument types |
Properties |
|
compressUndo(cu)
|
int
|
|
|
Controls how soft selection settings behave in undo:
- 0 means all changes undo individually
- 1 means all consecutive changes undo as a group
- 2 means only interactive changes undo as a group
When queried, returns an int indicating the current undo behaviour.
|
|
enableFalseColor(efc)
|
int
|
|
|
Set soft select color feedback on or off.
When queried, returns an int indicating whether color feedback
is currently enabled.
|
|
softSelectColorCurve(scc)
|
string
|
|
|
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)
|
string
|
|
|
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
|
|
|
Sets the falloff distance (radius) used for world and object space soft selection.
When queried, returns a float indicating the current falloff distance.
|
|
softSelectEnabled(sse)
|
int
|
|
|
Sets soft selection based modeling on or off.
When queried, returns an int indicating the current state of the option.
|
|
softSelectFalloff(ssf)
|
int
|
|
|
Sets the falloff mode:
- 0 for volume based falloff
- 1 for surface based falloff
- 2 for global falloff
When queried, returns an int indicating the falloff mode.
|
|
softSelectReset(ssr)
|
boolean
|
|
|
Resets soft selection to its default settings.
|
|
softSelectUVDistance(sud)
|
float
|
|
|
Sets the falloff distance (radius) used for UV space soft selection.
When queried, returns a float indicating the current falloff distance.
|
|
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
import maya.cmds as cmds
# Enable soft selection
cmds.softSelect(sse=1)
# Setup global soft select with radius and curve
cmds.softSelect(sse=1,ssd=2.0,ssc='0,1,2,1,0,2',ssf=2)