ジャンプ先: 概要. 戻り値. フラグ. Python 例.
texScaleContext([editPivotMode=boolean], [exists=boolean], [image1=string], [image2=string], [image3=string], [position=boolean], [preventNegativeScale=boolean], [snap=boolean], [snapRelative=boolean], [snapValue=float], [tweakMode=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
texScaleContext は、取り消し可能、照会可能、および編集可能です。
UV エディタのスケール コンテキストの作成、編集、照会を実行するときに使用できます。上記のフラグは、すべてのテクスチャ エディタのスケール コンテキストのグローバルの動作を制御します。コンテキストを独自に変更することはできません。上記のフラグを使ってコンテキストの動作を変更すると、既存のテクスチャ エディタのスケール コンテキストがすべて変更されます。| string | : 作成されたコンテキストの名前 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
editPivotMode(epm)
|
boolean
|
|
||
|
||||
exists(ex)
|
boolean
|
|
||
|
||||
image1(i1)
|
string
|
|
||
|
||||
image2(i2)
|
string
|
|
||
|
||||
image3(i3)
|
string
|
|
||
|
||||
position(p)
|
boolean
|
|
||
|
||||
preventNegativeScale(pns)
|
boolean
|
|
||
|
||||
snap(s)
|
boolean
|
|
||
|
||||
snapRelative(sr)
|
boolean
|
|
||
|
||||
snapValue(sv)
|
float
|
|
||
|
||||
tweakMode(twk)
|
boolean
|
|
||
|
||||
import maya.cmds as cmds # To create a new scale context: cmds.texScaleContext() # To query the position of the manipulator cmds.texScaleContext( 'texScaleContext', q=True, position=True )