移動先: 概要 戻り値 フラグ. 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 エディタのみで動作します。
戻り値の型は照会モードでは照会フラグが基になります。
dragSlider, effectType, exists, functionType, history, image1, image2, image3, name, pressure, radius, smudgeIsMiddle
ロング ネーム(ショート ネーム) |
引数型 |
プロパティ |
-exists(-ex)
|
|
|
|
指定したオブジェクトが存在するかどうかによって、true または false を返します。他のフラグは無視されます。
|
|
-image1(-i1)
|
string
|
 
|
|
-image2(-i2)
|
string
|
 
|
|
-image3(-i3)
|
string
|
 
|
|
コンテキストは、コンテキストに関連付けられている
ツールを表すアイコンを 3 つまでサポートします。
|
|
-history(-ch)
|
boolean
|
|
|
ツール コマンドの場合、対象となるツールの
コンストラクション ヒストリをオンにします。
|
|
-name(-n)
|
string
|
|
|
これがツール コマンドの場合、ツールに適切に名前を付けます。
|
|
-effectType(-et)
|
string
|

|
|
fixed | smudge
ツールのエフェクトを指定します。fixed モードでは、UV は
輪ゴムに貼り付けられているかのように動きます。smudge モードでは、UV は
カーソルが UV の上を引きずられたかのように動きます。
|
|
-functionType(-ft)
|
string
|

|
|
exponential | linear | constant
UV がインフルエンスの中心からどのように離れるかを指定します。
|
|
-radius(-r)
|
float
|

|
|
smudge ツールの半径です。この半径の範囲内のすべての UV は、このツールの影響を受けます。
|
|
-pressure(-prs)
|
float
|

|
|
エフェクト タイプが smudge に設定されているときの、圧力の値です。
|
|
-dragSlider(-ds)
|
string
|

|
|
radius | none
ドラッグ スライダ モードを有効にします。「b」または「B」ボタンを押している間、
ブラシのサイズ変更をサポートします。
|
|
-smudgeIsMiddle(-sim)
|
boolean
|

|
|
デフォルトでは、左マウス ボタンでスマッジ を開始します。
ただし、これは選択項目とコンフリクトします。smudgeIsMiddle がオンの場合、左マウス ボタンの代わりに
中マウス ボタンでスマッジ モードが有効になります。
|
|
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: 1 つのコマンドで複数回使用可能なフラグ
|
// 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;