ジャンプ先: 概要. 戻り値. フラグ. MEL 例.

概要

texSmudgeUVContext [-dragSlider string] [-effectType string] [-exists] [-functionType string] [-history boolean] [-image1 string] [-image2 string] [-image3 string] [-name string] [-pressure float] [-radius float] [-smudgeIsMiddle boolean] contextName

texSmudgeUVContext は、取り消し可能、照会可能、および編集可能です。

このコマンドは、スマッジ UV ツールのコンテキストを作成します。このコンテキストは、テクスチャ UV エディタのみで動作します。

戻り値

string作成されたエフェクト タイプの名前

照会モードでは、戻り値のタイプは照会されたフラグに基づきます。

フラグ

dragSlider, effectType, exists, functionType, history, image1, image2, image3, name, pressure, radius, smudgeIsMiddle
ロング ネーム(ショート ネーム) 引数タイプ プロパティ
-dragSlider(-ds) string queryedit
radius | none ドラッグ スライダ モードを有効にします。「b」または「B」ボタンを押している間、ブラシのサイズ変更をサポートします。
-effectType(-et) string queryedit
fixed | smudge ツールのエフェクトを指定します。fixed モードでは、UV は輪ゴムに貼り付けられているかのように動きます。smudge モードでは、UV はカーソルが UV の上を引きずられたかのように動きます。
-exists(-ex) create
指定したオブジェクトが存在するかどうかによって、true または false を返します。他のフラグは無視されます。
-functionType(-ft) string queryedit
exponential | linear | constantUV がインフルエンスの中心からどのように離れるかを指定します。
-history(-ch) boolean create
ツール コマンドの場合、対象となるツールのコンストラクション ヒストリをオンにします。
-image1(-i1) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の最初のアイコンです。
-image2(-i2) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 2 番目のアイコンです。
-image3(-i3) string createqueryedit
コンテキストに関連付けられているツールを表す 3 つの可能なアイコンの中の 3 番目のアイコンです。
-name(-n) string create
これがツール コマンドの場合、ツールに適切に名前を付けます。
-pressure(-prs) float queryedit
エフェクト タイプが smudge に設定されているときの、圧力の値です。
-radius(-r) float queryedit
smudge ツールの半径です。この半径の範囲内のすべての UV は、このツールの影響を受けます。
-smudgeIsMiddle(-sim) boolean queryedit
既定では、左マウス ボタンでスマッジ を開始します。ただし、これは選択項目とコンフリクトします。smudgeIsMiddle がオンの場合、左マウス ボタンの代わりに中マウス ボタンでスマッジ モードが有効になります。

フラグはコマンドの作成モードで表示できます フラグはコマンドの編集モードで表示できます
フラグはコマンドの照会モードで表示できます コマンド内でフラグを複数回使用できます。

MEL 例

// Create a poly plane
polyPlane -w 10 -h 10 -sx 10 -sy 10 -n pPlane1;

// Select all UVs
select -r pPlane1.map[0:120];

// Create a new smudge UV tool context, set the effect type to smudge mode, set the radius to 0.1 and pressure to 0.2, then switch to it
// In order to use this tool to smudge the UVs of pPlane1, you must open the texture UV editor
texSmudgeUVContext -effectType smudge -r 0.1 -prs 0.2 texSmudgeUVContext1;
setToolTo texSmudgeUVContext1;