pymel.core.context.texSculptCacheContext¶
- texSculptCacheContext(*args, **kwargs)¶
This is a tool context command for uv cache sculpting tool. In query mode, return type is based on queried flag.
Flags:
Long Name / Short Name Argument Types Properties adjustSize / asz bool
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 bool
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. exists / ex bool 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 bool
If true, the grab brush twists the UVs history / ch bool image1 / i1 unicode image2 / i2 unicode image3 / i3 unicode inverted / inv bool
If true, inverts the effect of the brush. mode / m unicode
Specifies the type of sculpting effect the brush will perform. name / n unicode pinsmooth / ps bool pinsmoothandpaint / psp bool sculptFalloffCurve / sfc unicode
Specifies the falloff curve that affects the brush. showBrushRingDuringStroke / sbr bool
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 have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.texSculptCacheContext
Example:
- ::
import pymel.core as pm
# Create a new sculpting context, then switch to it pm.texSculptCacheContext(‘uvSculptCtx’) # Result: u’uvSculptCtx’ # pm.setToolTo(‘uvSculptCtx’)
# Set uvSculptCtx’s brush size to 10.0 pm.texSculptCacheContext(‘uvSculptCtx’, edit=True, bs=10.0)