ジャンプ先: 概要. 戻り値. フラグ. 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, adjustStrength, direction, falloffType, floodPin, grabTwist, inverted, mode, sculptFalloffCurve, showBrushRingDuringStroke, size, strength
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
adjustSize(asz) boolean edit
true の場合、マウスをドラッグするとブラシ サイズを編集できるモードになります。false の場合、以前のスカルプト モードに戻ります。
adjustStrength(ast) boolean edit
true の場合、マウスをドラッグするとブラシ強度を編集できるモードになります。false の場合、以前のスカルプト モードに戻ります。
direction(d) int queryedit
UV の移動先をブラシが判別する方法を指定します。
falloffType(ft) int queryedit
影響のあるUV をブラシが判別する方法を指定します。
floodPin(fp) float createedit
各 UV のピンの値を指定した値に設定します。
grabTwist(gtw) boolean createqueryedit
true の場合、グラブ ブラシが UV をツイストします。
inverted(inv) boolean createqueryedit
true の場合、ブラシの効果を反転します。
mode(m) string queryedit
ブラシが実行するスカルプト エフェクトのタイプを指定します。
sculptFalloffCurve(sfc) string queryedit
ブラシに影響する減衰カーブを指定します。
showBrushRingDuringStroke(sbr) boolean queryedit
ストローク中にブラシ リングを表示するかどうかを指定します。
size(sz) float queryedit
現在のブラシのワールド空間サイズを指定します。
strength(st) float queryedit
現在のブラシのワールド空間強度を指定します。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。

Python 例

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)