Go to: Synopsis. Return value. Flags. Python examples.
texSculptCacheContext([adjustSize=boolean], [adjustStrength=boolean], [direction=int], [falloffType=int], [floodPin=float], [grabTwist=boolean], [inverted=boolean], [mode=string], [sculptFalloffCurve=string], [showBrushRingDuringStroke=boolean], [size=float], [strength=float])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
texSculptCacheContext is undoable, queryable, and editable.
This is a tool context command for uv cache sculpting tool.
None
In query mode, return type is based on queried flag.
adjustSize, adjustStrength, direction, falloffType, floodPin, grabTwist, inverted, mode, sculptFalloffCurve, showBrushRingDuringStroke, size, strength
Long name (short name) |
Argument types |
Properties |
|
adjustSize(asz)
|
boolean
|
|
|
If true, puts the tool into the mode where dragging the mouse will edit the brush size.
If false, puts the tool back into the previous sculpt mode.
|
|
adjustStrength(ast)
|
boolean
|
|
|
If true, puts the tool into the mode where dragging the mouse will edit the brush strength.
If false, puts the tool back into the previous sculpt mode.
|
|
direction(d)
|
int
|
|
|
Specifies how the brush determines where the uvs go.
|
|
falloffType(ft)
|
int
|
|
|
Specifies how the brush determines which uvs to affect.
|
|
floodPin(fp)
|
float
|
|
|
Sets the pin value for each UV to the given value
|
|
grabTwist(gtw)
|
boolean
|
|
|
If true, the grab brush twists the UVs
|
|
inverted(inv)
|
boolean
|
|
|
If true, inverts the effect of the brush.
|
|
mode(m)
|
string
|
|
|
Specifies the type of sculpting effect the brush will perform.
|
|
sculptFalloffCurve(sfc)
|
string
|
|
|
Specifies the falloff curve that affects the brush.
|
|
showBrushRingDuringStroke(sbr)
|
boolean
|
|
|
Specifies whether or not to show the brush ring during stroke.
|
|
size(sz)
|
float
|
|
|
Specifies the world-space size of the current brush.
|
|
strength(st)
|
float
|
|
|
Specifies the world-space strength of the current brush.
|
|
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
# Create a new sculpting context, then switch to it
cmds.texSculptCacheContext('uvSculptCtx')
cmds.setToolTo('uvSculptCtx')
# Set uvSculptCtx's brush size to 10.0
cmds.texSculptCacheContext('uvSculptCtx', edit=True, bs=10.0)