ジャンプ先: 概要. 戻り値. キーワード. フラグ. MEL 例.
polyColorSet [-allColorSets] [-clamped boolean] [-colorSet string] [-copy] [-create] [-currentColorSet] [-currentPerInstanceSet] [-delete] [-newColorSet string] [-perInstance boolean] [-rename] [-representation string] [-shareInstances] [-unshared]
polyColorSet は、取り消し可能、照会可能、および編集可能です。
カラー セットに次の操作を実行します。- 既存のカラー セットを削除 - 既存のカラー セットの名前を変更- 空のカラー セットを新規作成- 既存のカラー セットを現在のカラー セットに設定- インスタンス間での、インスタンス単位のカラー セットの共有を修正 - 現在のカラー セットを照会- すべてのカラー セットの名前を照会- すべてのカラー セットの名前と、代表値またはクランプ値を照会 - 現在のカラー セットの代表値またはクランプ値を照会boolean | 成功または失敗 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
---|---|---|---|---|
-allColorSets(-acs)
|
|
![]() ![]() ![]() |
||
|
||||
-clamped(-cla)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
-colorSet(-cs)
|
string
|
![]() ![]() ![]() |
||
|
||||
-copy(-cp)
|
|
![]() ![]() ![]() |
||
|
||||
-create(-cr)
|
|
![]() ![]() ![]() |
||
|
||||
-currentColorSet(-ccs)
|
|
![]() ![]() ![]() |
||
|
||||
-currentPerInstanceSet(-cpi)
|
|
![]() ![]() |
||
|
||||
-delete(-d)
|
|
![]() ![]() ![]() |
||
|
||||
-newColorSet(-nc)
|
string
|
![]() ![]() ![]() |
||
|
||||
-perInstance(-pi)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
-rename(-rn)
|
|
![]() ![]() ![]() |
||
|
||||
-representation(-rpt)
|
string
|
![]() ![]() ![]() |
||
|
||||
-shareInstances(-si)
|
|
![]() ![]() ![]() |
||
|
||||
-unshared(-us)
|
|
![]() ![]() ![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// 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;