ジャンプ先: 概要. 戻り値. フラグ. Python 例.
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])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
texSculptCacheContext は、取り消し可能、照会可能、および編集可能です。
これは UV キャッシュ スカルプト ツールのためのツール コンテキスト コマンドです。なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
adjustSize(asz)
|
boolean
|
|
||
|
||||
adjustStrength(ast)
|
boolean
|
|
||
|
||||
direction(d)
|
int
|
|
||
|
||||
falloffType(ft)
|
int
|
|
||
|
||||
floodPin(fp)
|
float
|
|
||
|
||||
grabTwist(gtw)
|
boolean
|
|
||
|
||||
inverted(inv)
|
boolean
|
|
||
|
||||
mode(m)
|
string
|
|
||
|
||||
sculptFalloffCurve(sfc)
|
string
|
|
||
|
||||
showBrushRingDuringStroke(sbr)
|
boolean
|
|
||
|
||||
size(sz)
|
float
|
|
||
|
||||
strength(st)
|
float
|
|
||
|
||||
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)