移動先: 概要 戻り値 フラグ. MEL 例.

概要

itemFilterRender [-anyTextures boolean] [-category string] [-classification string] [-exclusiveLights boolean] [-lightSets boolean] [-lights boolean] [-linkedLights boolean] [-listBuiltInFilters] [-listOtherFilters] [-listUserFilters] [-negate boolean] [-nonExclusiveLights boolean] [-nonIlluminatingLights boolean] [-parent string] [-postProcess boolean] [-renderUtilityNode boolean] [-renderableObjectSets boolean] [-shaders boolean] [-text string] [-textures2d boolean] [-textures3d boolean] [-texturesProcedural boolean] name

itemFilterRender は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。

指定した renderTypeFilter オブジェクトを作成するためのコマンドです。このオブジェクトは selectionConnection オブジェクトやエディタにアタッチして、これらのオブジェクトやエディタを通過する renderType リストをフィルタすることができます。論理和(Union)や論理積(Intersection)フィルタを使用して、 複雑な合成フィルタを作成できます。

戻り値

stringフィルタ名。

戻り値の型は照会モードでは照会フラグが基になります。

フラグ

anyTextures, category, classification, exclusiveLights, lightSets, lights, linkedLights, listBuiltInFilters, listOtherFilters, listUserFilters, negate, nonExclusiveLights, nonIlluminatingLights, parent, postProcess, renderUtilityNode, renderableObjectSets, shaders, text, textures2d, textures3d, texturesProcedural
ロング ネーム(ショート ネーム) 引数型 プロパティ
-negate(-neg) boolean createqueryedit
このフラグはフィルタ自身を反転させたり、 通過するものと通過しないものを逆転したりするために使用できます。
-parent(-p) string createqueryedit
オプションです。指定すると、フィルタのライフスパンが その親のライフスパンに関連付けられます。親が範囲を逸脱すると、フィルタも範囲を逸脱します。指定されていない場合、 フィルタは明示的に削除されるまで存在しつづけます。
-text(-t) string createqueryedit
フィルタを使用して格納する注釈文字列を定義します。
-category(-cat) string createqueryeditmultiuse
フィルタを分類するための文字列です。
-classification(-cls) string createqueryedit
内部でのみ使用されます。フィルタが組み込みフィルタであるか、ユーザ定義フィルタであるかを指定します。文字列引数は「builtIn」、「user」、「other」のいずれかになります。
-listBuiltInFilters(-lbf) query
「builtIn」に分類されている項目フィルタすべての配列を返します。
-listUserFilters(-luf) query
「user」に分類されている項目フィルタすべての配列を返します。
-listOtherFilters(-lof) query
「other」に分類されている項目フィルタすべての配列を返します。
-shaders(-s) boolean createqueryedit
true に設定されている場合、シェーダ オブジェクトを通過させます。デフォルト値は false です。シェーダ以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して、結果を逆転させます。
-anyTextures(-at) boolean createqueryedit
true に設定されている場合、テクスチャ オブジェクトを通過させます。デフォルト値は false です。テクスチャ以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して、結果を逆転させます。
-textures2d(-t2d) boolean createqueryedit
true に設定されている場合、2D テクスチャ オブジェクトを通過させます。デフォルト値は false です。2 次元テクスチャ以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して結果を逆転させます。
-textures3d(-t3d) boolean createqueryedit
true に設定されている場合、3D テクスチャ オブジェクトを通過させます。デフォルト値は false です。3 次元テクスチャ以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して結果を逆転させます。
-lights(-l) boolean createqueryedit
true に設定されている場合、ライト オブジェクトを通過させます。デフォルト値は false です。ライト以外のオブジェクトをすべて取得するには、このフラグを true に設定し、 -neg/negate フラグを使用して結果を逆転させます。
-postProcess(-pp) boolean createqueryedit
true に設定されている場合、ポスト プロセス オブジェクトを通過させます。デフォルト値は false です。ポスト プロセス オブジェクト以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して、結果を逆転させます。
-renderUtilityNode(-run) boolean createqueryedit
true に設定されている場合、 レンダー ユーティリティ ノード オブジェクトを通過させます。デフォルト値は false です。レンダー ユーティリティ ノード以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して結果を逆転させます。
-exclusiveLights(-exl) boolean createqueryedit
true に設定されている場合、排他ライト オブジェクトを通過させます。デフォルト値は false です。排他ライト以外のオブジェクトをすべて取得するには、このフラグを true に設定し、 -neg/negate フラグを使用して結果を逆転させます。
-linkedLights(-ll) boolean createqueryedit
true に設定されている場合、関連付けられたライト オブジェクトを通過させます。デフォルト値は false です。関連付けられたライト以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して結果を逆転させます。
-lightSets(-ls) boolean createqueryedit
true に設定されている場合、ライト設定オブジェクトを通過させます。デフォルト値は false です。ライト設定オブジェクト以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して結果を逆転させます。
-nonIlluminatingLights(-nil) boolean createqueryedit
true に設定されている場合、イルミネートされていないライト オブジェクトを通過させます。デフォルト値は false です。イルミネートされていないライト以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して結果を逆転させます。
-nonExclusiveLights(-nxl) boolean createqueryedit
true に設定されている場合、排他ではないライト オブジェクトを通過させます。デフォルト値は false です。排他ではないライト以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して結果を逆転させます。
-renderableObjectSets(-ros) boolean createqueryedit
true に設定されている場合、レンダリング可能なオブジェクト セットを通過させます。デフォルト値は false です。レンダリング可能なオブジェクトセット以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して結果を逆転させます。
-texturesProcedural(-tp) boolean createqueryedit
true に設定されている場合、プロシージャ テクスチャ オブジェクトを通過させます。デフォルト値は false です。プロシージャ テクスチャ オブジェクト以外のオブジェクトをすべて取得するには、 このフラグを true に設定し、-neg/negate フラグを使用して結果を反転させます。

: コマンドの作成モードで使用可能なフラグ : コマンドの編集モードで使用可能なフラグ
: コマンドの照会モードで使用可能なフラグ : 1 つのコマンドで複数回使用可能なフラグ

MEL 例

//    If an object is a shader or any type of texture, it will pass
//    this filter.
//
string $shadersAndTextures = `itemFilterRender -shaders true -anyTextures true`;

//    If an object is not a 3d Texture, it will pass this filter.
//
string $no3dTextures = `itemFilterRender -negate true -textures3d true`;

//    A couple more filters.  One showing only lights, the other showing
//    everything but lights.
//
string $lights = `itemFilterRender -lights true`;
string $noLights = `itemFilterRender -lights true -negate true`;

//    Create a window with an outliner editor, along with some buttons that
//    will apply a different filter to the outliner.
//
string $window = `window`;
string $form = `formLayout`;
string $editor = `outlinerEditor -showDagOnly false`;
string $column = `columnLayout -adjustableColumn true`;
button -label "No Filter"            -command ("outlinerEditor -edit -filter \"\" $editor");
button -label "Shaders and Textures" -command ("outlinerEditor -edit -filter $shadersAndTextures $editor");
button -label "No 3D Textures"       -command ("outlinerEditor -edit -filter $no3dTextures $editor");
button -label "Lights"               -command ("outlinerEditor -edit -filter $lights $editor");
button -label "No Lights"            -command ("outlinerEditor -edit -filter $noLights $editor");
string $input = `selectionConnection -worldList`;
editor -edit -mainListConnection $input $editor;

//    Apply the layout attachments.
//
formLayout -edit
    -attachForm    $column "top"    0
    -attachForm    $column "left"   0
    -attachForm    $column "bottom" 0
    -attachNone    $column "right"
    -attachForm    $editor "top"    0
    -attachControl $editor "left"   0 $column
    -attachForm    $editor "bottom" 0
    -attachForm    $editor "right"  0
    $form;

//    Put some objects in the scene.
//
spotLight;
pointLight;
shadingNode -asTexture bulge;
shadingNode -asTexture checker;
shadingNode -asTexture granite;
shadingNode -asTexture wood;
shadingNode -asShader lambert;
shadingNode -asShader blinn;

showWindow $window;