ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
displayRGBColor(
string
, [alpha=boolean], [create=boolean], [hueSaturationValue=boolean], [list=boolean], [resetToFactory=boolean], [resetToSaved=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
displayRGBColor は、取り消し可能、照会可能、および編集不可能です。
アプリケーション内のすべてのものの表示カラーの変更か照会が行われ、ユーザがカラーを設定できるようになります。このカラーは UI の一部であって、モデルの保存データの一部ではありません。このコマンドは元に戻せません。
string | リスト フラグを使用する場合。その他の場合はなし。 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
currentUnit, displayAffected, displayColor, displayCull, displayLevelOfDetail, displayPref, displaySmoothness, displayStats, displaySurface, hide, refresh, showHidden, toggle
alpha, create, hueSaturationValue, list, resetToFactory, resetToSaved
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# Set the background colour to red
cmds.displayRGBColor( 'background', 1, 0, 0 )
# List the current RGB color settings
cmds.displayRGBColor( list=True )
# Query a RGB color by name
cmds.displayRGBColor("object", query=True)
# Query the HSVA values of a color
cmds.displayRGBColor("object", query=True, hsv=True, alpha=True)