Go to: Synopsis. Flags. Return value. Python examples.
isolateSelect(
<modelPane>
, [addDagObject=string], [addSelected=boolean], [loadSelected=boolean], [removeSelected=boolean], [state=boolean], [update=boolean], [viewedObjects=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
isolateSelect is undoable, queryable, and editable.
This command turns on/off isolate select mode in a specified modeling
view. Isolate select mode is a display mode where the currently
selected objects are added to a list and only those objects are
displayed in the view. It allows for selective viewing of specific
objects and object components.
addDagObject, addSelected, loadSelected, removeSelected, state, update, viewedObjects
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can have multiple arguments, passed either as a tuple or a list.
|
boolean - when used with query
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 )
# to query the current modelPanel, you can use the command
#
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][*]' )
cmds.isolateSelect( 'modelPanel1', state=1 )
# add the code to the list of objects to be viewed
cmds.select( 'cone1' )
cmds.isolateSelect( 'modelPanel1', addSelected=True )
# make just the sphere the object to be viewed
cmds.select( 'sphere1' )
cmds.isolateSelect( 'modelPanel1', loadSelected=True )
Return to Autodesk Index