ジャンプ先: 概要. 戻り値. フラグ. Python 例.
sculptMeshCacheCtx([adjustSize=boolean], [adjustStrength=boolean], [affectAllLayers=boolean], [brushDirection=int], [brushSize=float], [brushStrength=float], [buildUpRate=float], [cloneHideSource=boolean], [cloneMethod=int], [cloneShapeSource=string], [cloneTargetSource=string], [constrainToSurface=boolean], [direction=int], [displayFrozen=boolean], [displayMask=boolean], [displayWireframe=boolean], [falloffType=int], [flood=float], [floodFreeze=float], [frame=boolean], [freezeSelection=boolean], [grabFollowPath=boolean], [grabSilhouette=boolean], [grabTwist=boolean], [inverted=boolean], [lastMode=string], [lockShellBorder=boolean], [makeStroke=[uint, uint, uint, float, float]], [minSize=float], [minStrength=float], [mirror=int], [mode=string], [orientToSurface=boolean], [recordStroke=boolean], [sculptFalloffCurve=string], [size=float], [stampDistance=float], [stampFile=string], [stampFlipX=boolean], [stampFlipY=boolean], [stampOrientToStroke=boolean], [stampPlacement=int], [stampRandomization=boolean], [stampRandomizationSeed=int], [stampRandomizeFlipX=boolean], [stampRandomizeFlipY=boolean], [stampRandomizePosX=float], [stampRandomizePosY=float], [stampRandomizeRotation=float], [stampRandomizeScale=float], [stampRandomizeStrength=float], [stampRotation=float], [steadyStrokeDistance=float], [strength=float], [updatePlane=boolean], [useGlobalSize=boolean], [useScreenSpace=boolean], [useStampDistance=boolean], [useStampImage=boolean], [useSteadyStroke=boolean], [wholeStroke=boolean], [wireframeAlpha=float], [wireframeColor=[float, float, float]])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
sculptMeshCacheCtx は、取り消し可能、照会可能、および編集可能です。
これはメッシュ キャッシュ スカルプト ツールのためのツール コンテキスト コマンドです。なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
adjustSize(asz)
|
boolean
|
|
||
|
||||
adjustStrength(ast)
|
boolean
|
|
||
|
||||
affectAllLayers(aal)
|
boolean
|
|
||
|
||||
brushDirection(bd)
|
int
|
|
||
|
||||
brushSize(bsz)
|
float
|
|
||
|
||||
brushStrength(bst)
|
float
|
|
||
|
||||
buildUpRate(bur)
|
float
|
|
||
|
||||
cloneHideSource(chs)
|
boolean
|
|
||
|
||||
cloneMethod(cm)
|
int
|
|
||
|
||||
cloneShapeSource(css)
|
string
|
|
||
|
||||
cloneTargetSource(cas)
|
string
|
|
||
|
||||
constrainToSurface(cts)
|
boolean
|
|
||
|
||||
direction(d)
|
int
|
|
||
|
||||
displayFrozen(df)
|
boolean
|
|
||
|
||||
displayMask(dm)
|
boolean
|
|
||
|
||||
displayWireframe(dw)
|
boolean
|
|
||
|
||||
falloffType(ft)
|
int
|
|
||
|
||||
flood(fl)
|
float
|
|
||
|
||||
floodFreeze(ff)
|
float
|
|
||
|
||||
frame(frm)
|
boolean
|
|
||
|
||||
freezeSelection(fsl)
|
boolean
|
|
||
|
||||
grabFollowPath(gfp)
|
boolean
|
|
||
|
||||
grabSilhouette(gs)
|
boolean
|
|
||
|
||||
grabTwist(gtw)
|
boolean
|
|
||
|
||||
inverted(inv)
|
boolean
|
|
||
|
||||
lastMode(lm)
|
string
|
|
||
|
||||
lockShellBorder(lsb)
|
boolean
|
|
||
|
||||
makeStroke(mt)
|
[uint, uint, uint, float, float]
|
|
||
|
||||
minSize(msz)
|
float
|
|
||
|
||||
minStrength(mst)
|
float
|
|
||
|
||||
mirror(mr)
|
int
|
|
||
|
||||
mode(m)
|
string
|
|
||
|
||||
orientToSurface(ots)
|
boolean
|
|
||
|
||||
recordStroke(rcs)
|
boolean
|
|
||
|
||||
sculptFalloffCurve(sfc)
|
string
|
|
||
|
||||
size(sz)
|
float
|
|
||
|
||||
stampDistance(s)
|
float
|
|
||
|
||||
stampFile(stp)
|
string
|
|
||
|
||||
stampFlipX(sfx)
|
boolean
|
|
||
|
||||
stampFlipY(sfy)
|
boolean
|
|
||
|
||||
stampOrientToStroke(sos)
|
boolean
|
|
||
|
||||
stampPlacement(sp)
|
int
|
|
||
|
||||
stampRandomization(srd)
|
boolean
|
|
||
|
||||
stampRandomizationSeed(sre)
|
int
|
|
||
|
||||
stampRandomizeFlipX(srx)
|
boolean
|
|
||
|
||||
stampRandomizeFlipY(sry)
|
boolean
|
|
||
|
||||
stampRandomizePosX(spx)
|
float
|
|
||
|
||||
stampRandomizePosY(spy)
|
float
|
|
||
|
||||
stampRandomizeRotation(srr)
|
float
|
|
||
|
||||
stampRandomizeScale(src)
|
float
|
|
||
|
||||
stampRandomizeStrength(srs)
|
float
|
|
||
|
||||
stampRotation(sr)
|
float
|
|
||
|
||||
steadyStrokeDistance(ssd)
|
float
|
|
||
|
||||
strength(st)
|
float
|
|
||
|
||||
updatePlane(upl)
|
boolean
|
|
||
|
||||
useGlobalSize(ugs)
|
boolean
|
|
||
|
||||
useScreenSpace(ssp)
|
boolean
|
|
||
|
||||
useStampDistance(usd)
|
boolean
|
|
||
|
||||
useStampImage(usi)
|
boolean
|
|
||
|
||||
useSteadyStroke(uss)
|
boolean
|
|
||
|
||||
wholeStroke(wst)
|
boolean
|
|
||
|
||||
wireframeAlpha(wa)
|
float
|
|
||
|
||||
wireframeColor(wc)
|
[float, float, float]
|
|
||
|
||||
import maya.cmds as cmds
# Create a new sculpting context, then switch to it
cmds.sculptMeshCacheCtx('sculptMeshCacheContext')
cmds.setToolTo('sculptMeshCacheContext')
# Set sculptMeshCacheContext's brush size to 10.0
cmds.sculptMeshCacheCtx('sculptMeshCacheContext', edit=True, sz=10.0)