移動先: 概要 戻り値 キーワード. フラグ. MEL 例.
polyColorSet [-allColorSets] [-clamped boolean] [-colorSet string] [-copy] [-create] [-currentColorSet] [-currentPerInstanceSet] [-delete] [-newColorSet string] [-perInstance boolean] [-rename] [-representation string] [-shareInstances] [-unshared]
polyColorSet は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
カラー セットに次の操作を実行します。 - 既存のカラー セットを削除 - 既存のカラー セットの名前を変更 - 空のカラー セットを新規作成 - 既存のカラー セットをカレント カラー セットに設定 - インスタンス間での、インスタンス単位のカラー セットの共有を修正 - カレント カラー セットを照会 - すべてのカラー セットの名前を照会 - すべてのカラー セットの名前と、代表値またはクランプ値を照会 - カレント カラー セットの代表値またはクランプ値を照会boolean | 成功または失敗。 |
戻り値の型は照会モードでは照会フラグが基になります。
ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
---|---|---|---|---|
-colorSet(-cs)
|
string
|
![]() ![]() ![]() |
||
|
||||
-currentColorSet(-ccs)
|
|
![]() ![]() ![]() |
||
|
||||
-newColorSet(-nc)
|
string
|
![]() ![]() ![]() |
||
|
||||
-rename(-rn)
|
|
![]() ![]() ![]() |
||
|
||||
-delete(-d)
|
|
![]() ![]() ![]() |
||
|
||||
-copy(-cp)
|
|
![]() ![]() ![]() |
||
|
||||
-create(-cr)
|
|
![]() ![]() ![]() |
||
|
||||
-allColorSets(-acs)
|
|
![]() ![]() ![]() |
||
|
||||
-clamped(-cla)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
-representation(-rpt)
|
string
|
![]() ![]() ![]() |
||
|
||||
-perInstance(-pi)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
-unshared(-us)
|
|
![]() ![]() ![]() |
||
|
||||
-shareInstances(-si)
|
|
![]() ![]() ![]() |
||
|
||||
-currentPerInstanceSet(-cpi)
|
|
![]() ![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// To set the current color set to be "color2". polyColorSet -currentColorSet -colorSet "color2"; // To query the current color set. polyColorSet -q -currentColorSet; // To create a per-instance color set family with one set member // per selected instance. polyColorSet -create -colorSet "perInst" -perInstance true -unshared; // To create a per-instance color set family with one set member // for all selected instances. polyColorSet -create -colorSet "perInst" -perInstance true; // To rename a currently existing color set from "color3" to "color4". polyColorSet -rename -colorSet "color3" -newColorSet "color4"; // Rename the current color set (if any) to "color3". polyColorSet -rename -newColorSet "color3"; // To delete a currently existing color set "color3". polyColorSet -delete -colorSet "color3"; // To delete the current color set (if any) polyColorSet -delete; // Copy values of color set "color1" to "color2" // Note if the second color set exist it will be overwriten by // the copy. Leaving the destination color blank and the command // will generate a new unique name based on the source name. polyColorSet -copy -colorSet "color1" -newColorSet "color2"; // Copy values of the current color set to "color2" polyColorSet -copy -newColorSet "color2"; // Make a copy of "color1" to a new color set. The // name of which is automatically generated and returned. polyColorSet -copy -colorSet "color1"; // Create a new empty color set polyColorSet -create -colorSet "newColor"; // Create a new empty color set with a generate new name // The newly generated name is returned. polyColorSet -create; // Create a new empty color set that has the values in the // range from 0 to 1 and has 3 channels of R, G, and B. polyColorSet -create -clamped true -representation "RGB" -colorSet "color5"; // To query all of the color sets polyColorSet -q -allColorSets; // To query all of the color set names and their representation values polyColorSet -q -allColorSets -representation; // To query the clamped value of the current color set polyColorSet -q -currentColorSet -clamped;