ジャンプ先: 概要. 戻り値. フラグ. Python 例.
isolateSelect(
string
, [addDagObject=name], [addSelected=boolean], [addSelectedObjects=boolean], [loadSelected=boolean], [removeDagObject=name], [removeSelected=boolean], [state=boolean], [update=boolean], [viewObjects=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
isolateSelect は、取り消し可能、照会可能、および編集不可能です。
このコマンドは、引数として指定された特定のモデリング ビューで選択項目の分離モードのオンとオフを切り替えます。選択項目の分離モードはディスプレイ モードの 1 つで、このモードでは現在選択されているオブジェクトがリストに追加され、これらのオブジェクトだけがビューに表示されます。したがって、特定のオブジェクトやオブジェクト コンポーネントだけを選択的に表示することができます。
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
addDagObject, addSelected, addSelectedObjects, loadSelected, removeDagObject, removeSelected, state, update, viewObjects
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
フラグに複数の引数を指定し、タプルまたはリストとして渡すことができます。
|
import maya.cmds as cmds
# create some primitives and go into component selection mode
cmds.sphere( n='sphere1' )
cmds.cone( n='cone1' )
cmds.selectMode( component=True )
# Use the current modelPanel for isolation
isolated_panel = cmds.paneLayout('viewPanes', q=True, pane1=True)
# turn on isolate select mode for a particular 3d view. Only
# the sphere and the selected CVs will be displayed.
cmds.select( 'sphere1.cv[0:2][*]' )
# Connect the selected objects with editor and
# locks the current list of objects within the mainConnection
cmds.editor( isolated_panel, edit=True, lockMainConnection=True, mainListConnection='activeList' )
cmds.isolateSelect( isolated_panel, state=1 )
# add the cone to the list of objects to be viewed
cmds.select( 'cone1' )
cmds.isolateSelect( isolated_panel, addSelected=True )
# make just the sphere the object to be viewed
cmds.select( 'sphere1' )
# Unlock the current list of objects within the editor
cmds.editor( isolated_panel, edit=True, mainListConnection='activeList' )
cmds.isolateSelect( isolated_panel, loadSelected=True )