pymel.core.context.sculptMeshCacheCtx¶
- sculptMeshCacheCtx(*args, **kwargs)¶
This is a tool context command for mesh 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. affectAllLayers / aal bool If true, the brush affects all layers at once. brushDirection / bd int Specifies the direction of the named brush. brushSize / bsz float Specifies the world-space size of the named brush. brushStrength / bst float Specifies the world-space strength of the named brush. buildUpRate / bur float Specifies the brush strength increasing along the stroke. cloneHideSource / chs bool True if the cloned source should be hidden. cloneInvert / ci bool If this is true, vectors from the source will be inverted. cloneMethod / cm int Controls how the source delta vectors should change the target. 0=copy 1=add cloneShapeSource / css unicode Name of the shape source to clone. cloneTargetSource / cas unicode Name of the target source of the clone. constrainToSurface / cts bool If true, the modification keeps the surface curvature. direction / d int Specifies the direction in which the vertices are moved. displayFrozen / df bool If false, turns off the display of frozen area on the object. displayMask / dm bool If false, turns off the display of masked area on the object. displayWireframe / dw bool If false, turns off the wireframe display of the object. exists / ex bool falloffType / ft int Specifies how the brush determines which vertices to affect. flood / fl float Sets the brush effect for each vertex to the given value. floodFreeze / ff float Sets the freeze value for each vertex to the given value. frame / frm bool Frames on the sculpted area. freezeSelection / fsl bool Freezes selected components. freezesmooth / fs bool freezesmoothandpaint / fsp bool grabFollowPath / gfp bool If true, the grab brush effect follows mouse movement. grabSilhouette / gs bool If true, the grab brush uses paint-through mode. grabTwist / gtw bool If true, the grab brush twists the vertices. history / ch bool image1 / i1 unicode image2 / i2 unicode image3 / i3 unicode inverted / inv bool If true, inverts the effect of the brush. lastMode / lm unicode Specifies the type of the last active sculpting brush. lockShellBorder / lsb bool Lock the shell borders so that they won’t be moved by a UV texture brush. minSize / msz float Specifies the minimum size percentage of the current brush. minStrength / mst float Specifies the minimum strength percentage of the current brush. mirror / mr int Specifies the mirror mode of the brush. mode / m unicode Specifies the type of sculpting effect the brush will perform. name / n unicode orientToSurface / ots bool If true, aligns the brush display to the surface of the mesh. sculptFalloffCurve / sfc unicode Specifies the falloff curve of sculpting effect the brush will perform. size / sz float Specifies the world-space size of the current brush. stampDistance / s float Specifies the stamping distance of the brush. stampFile / stp unicode Specifies an image file to use as stamp. stampFlipX / sfx bool Specifies if the brush stamp is flipped on the X axis. stampFlipY / sfy bool Specifies if the brush stamp is flipped on the Y axis. stampOrientToStroke / sos bool Specifies if the brush stamp is aligned to the stroke direction. stampPlacement / sp int Specifies the placement mode of the stamp image. stampRandomization / srd bool Specifies if the brush stamp is randomized. stampRandomizeFlipX / srx bool Specifies if the brush stamp flipping is randomized on the X axis. stampRandomizeFlipY / sry bool Specifies if the brush stamp flipping is randomized on the Y axis. stampRandomizePosX / spx float Specifies the stamp X position value is randomized. stampRandomizePosY / spy float Specifies the stamp Y position value is randomized. stampRandomizeRotation / srr float Specifies the stamp rotation value is randomized. stampRandomizeScale / src float Specifies the stamp scale value is randomized. stampRandomizeStrength / srs float Specifies the stamp strength value is randomized. stampRotation / sr float Specifies the rotation value of the stamp image. steadyStrokeDistance / ssd float Specifies the distance for the steady stroke. strength / st float Specifies the world-space strength of the current brush. updatePlane / upl bool Recalculates the underlying tool plane for each stamp in a stroke. useGlobalSize / ugs bool If true, all the brushes have a shared size property; otherwise size is local. useScreenSpace / ssp bool If true, the brush size is in screen space pixels. useStampDistance / usd bool Force the stamps to be spread out along the stroke, rather than building up continually. useStampImage / usi bool Specifies if the brush uses a stamp image. useSteadyStroke / uss bool Turns using steady stroke on/off. wholeStroke / wst bool Continuously recalculates the underlying tool plane from all the vertices affected during the stroke. wireframeAlpha / wa float Sets the alpha value of the wireframe for the object that is being sculpted. wireframeColor / wc float, float, float Sets the color of the wireframe for the object that is being sculpted. Values should be 0-1 RGB. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.sculptMeshCacheCtx