移動先: 概要 戻り値 フラグ. MEL 例.
gradientControlNoAttr [-asString string] [-changeCommand string] [-currentKey int] [-currentKeyChanged script] [-currentKeyColorValue float float float] [-currentKeyCurveValue] [-currentKeyInterpValue int] [-dragCommand script] [-optionVar string] [-rampAsColor boolean] [-valueAtPoint float]
[string]
gradientControlNoAttr は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
このコマンドは、ランプ(2D コントロール カーブ)の編集のための
コントロールを作成します。作成されたコントロールは、エンコードされたグラディエント制御点を格納し、
読み込むために使用される optionVar にアタッチされます。
戻り値の型は照会モードでは照会フラグが基になります。
asString, changeCommand, currentKey, currentKeyChanged, currentKeyColorValue, currentKeyCurveValue, currentKeyInterpValue, dragCommand, optionVar, rampAsColor, valueAtPoint
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: 1 つのコマンドで複数回使用可能なフラグ
|
window -title "Gradient Control For OptionVar";
optionVar -stringValueAppend "falloffCurveOptionVar" "0,1,2";
optionVar -stringValueAppend "falloffCurveOptionVar" "1,0,2";
columnLayout;
gradientControlNoAttr -h 90 falloffCurve;
gradientControlNoAttr -e
-optionVar "falloffCurveOptionVar"
falloffCurve;
showWindow;
// Query for the value on the curve at a given position.
//
gradientControlNoAttr -valueAtPoint 0.5 -query falloffCurve;