selectionConnection [-activeCacheList] [-activeCharacterList] [-activeList] [-addScript script] [-addTo string] [-characterList] [-clear] [-connectionList] [-defineTemplate string] [-deselect name] [-editor string] [-exists] [-filter string] [-findObject name] [-global boolean] [-highlightList] [-identify] [-keyframeList] [-lock boolean] [-modelList] [-object name] [-parent string] [-remove string] [-removeScript script] [-select name] [-setList] [-switch] [-useTemplate string] [-worldList]
string
selectionConnection は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
このコマンドは、指定した名前の selectionConnection オブジェクトを作成します。このオブジェクトは、単に共有されているセレクション リストにすぎません。このリストは、ハイライト データを共有するために複数のエディタによって使用する場合があります。たとえば、選択したリストをアウトライナ(Outliner)がこれらのいずれかのオブジェクトにアタッチし、グラフ エディタ(Graph Editor)がその同じオブジェクトをリスト ソースとして使用する場合があります。グラフ エディタには、アウトライナで選択したオブジェクトのみが表示されます。 selectionConnection は、モデル オブジェクトのリストを含む UI オブジェクトです。selectionConnection は、特定のエディタに表示させるオブジェクトを指定するために便利です。エディタには、selectionConnection をアタッチできる 3 つのプラグ ソケットがあります。 それらは次のとおりです。-- Editor 1-- -- Editor 2-- inputList-->| main | | |->| main | | | | sele |--| | | sele |--| |->| high | | | high | | | | ------------- ------------- | |------------- fromEditor2 -------------|このネットワークは、次のコマンドによって確立されます。
selectionConnection -activeList inputList; selectionConnection fromEditor1; selectionConnection fromEditor2; editor -edit -mainListConnection inputList Editor1; editor -edit -selectionConnection fromEditor1 Editor1; editor -edit -mainListConnection fromEditor1 Editor2; editor -edit -selectionConnection fromEditor2 Editor2; editor -edit -highlightConnection fromEditor2 Editor1;注: selectionConnection を削除する場合は、deleteUI コマンドを使用します。
string |
戻り値の型は照会モードでは照会フラグが基になります。
ロング ネーム(ショート ネーム) | 引数型 | プロパティ | ||
---|---|---|---|---|
-exists(-ex)
|
|
![]() |
||
|
||||
-defineTemplate(-dt)
|
string
|
![]() |
||
|
||||
-useTemplate(-ut)
|
string
|
![]() |
||
|
||||
-parent(-p)
|
string
|
![]() ![]() ![]() |
||
|
||||
-filter(-f)
|
string
|
![]() ![]() ![]() |
||
|
||||
-global(-g)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
-activeList(-act)
|
|
![]() |
||
|
||||
-modelList(-mdl)
|
|
![]() |
||
|
||||
-keyframeList(-key)
|
|
![]() |
||
|
||||
-worldList(-wl)
|
|
![]() |
||
|
||||
-object(-obj)
|
name
|
![]() ![]() ![]() |
||
|
||||
-setList(-sl)
|
|
![]() |
||
|
||||
-characterList(-cl)
|
|
![]() |
||
|
||||
-activeCharacterList(-acl)
|
|
![]() |
||
|
||||
-activeCacheList(-atc)
|
|
![]() |
||
|
||||
-highlightList(-hl)
|
|
![]() |
||
|
||||
-connectionList(-lst)
|
|
![]() ![]() |
||
|
||||
-switch(-sw)
|
|
![]() ![]() |
||
|
||||
-editor(-ed)
|
string
|
![]() ![]() ![]() |
||
|
||||
-addTo(-add)
|
string
|
![]() ![]() |
||
|
||||
-remove(-rm)
|
string
|
![]() ![]() |
||
|
||||
-findObject(-fo)
|
name
|
![]() |
||
|
||||
-identify(-id)
|
|
![]() |
||
|
||||
-lock(-lck)
|
boolean
|
![]() ![]() ![]() |
||
|
||||
-clear(-clr)
|
|
![]() ![]() |
||
|
||||
-addScript(-as)
|
script
|
![]() ![]() ![]() |
||
|
||||
-removeScript(-rs)
|
script
|
![]() ![]() ![]() |
||
|
||||
-select(-s)
|
name
|
![]() ![]() |
||
|
||||
-deselect(-d)
|
name
|
![]() ![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// Example 1. // // Create a window with two Outliner editors and a // selection connection network. Editor 1 will display the // current scene's active list. Editor 2 will display the items // selected in Editor 1. // string $window = `window -wh 400 300`; paneLayout -configuration "vertical2"; string $editor1 = `outlinerEditor`; string $editor2 = `outlinerEditor`; // Create the selection connection network. // string $inputList = `selectionConnection -activeList`; string $fromEditor1 = `selectionConnection`; string $fromEditor2 = `selectionConnection`; editor -edit -mainListConnection $inputList $editor1; editor -edit -selectionConnection $fromEditor1 $editor1; editor -edit -mainListConnection $fromEditor1 $editor2; editor -edit -selectionConnection $fromEditor2 $editor2; showWindow $window; // Create some objects and select them. // sphere; cone; cylinder; select -all; // Now as you select objects on the left side, they will be // displayed on the right side. You can also add a callback // script to do further processing on the list when objects // are added. (Use -removeScript for when objects are removed.) global proc addScriptCallback(string $array[]) { print "Contents of callback array:\n"; print $array; } selectionConnection -e -addScript addScriptCallback $fromEditor1; // Example 2. // // Create a selection connection for a paritcular object. Delete // the selection connection and the object. // sphere -name sphere; // Create a selection connection to wrap the sphere. // selectionConnection -object sphere holder; // Select the sphere using the selection connection. // select holder; // Delete the members (sphere) of the selection connection // delete holder; // Delete the selection connection (does not delete the members of // the selection connection. // deleteUI holder;