pymel.core.nodetypes.SelectionSet

Inheritance diagram of SelectionSet

class SelectionSet(objs)
MergeStrategy = Enum( EnumValue('MergeStrategy', 0, 'mergeNormal'), EnumValue('MergeStrategy', 1, 'XORWithList'), EnumValue('MergeStrategy', 2, 'removeFromList'))
add(item)
apicls

alias of MSelectionList

asObjectSet()
clear()

This method empties the selection list. Derived from api method maya.OpenMaya.MSelectionList.clear

Undo is not currently supported for this method

difference(other)
getDifference(other)
Return type:SelectionSet
getIntersection(other)
Return type:SelectionSet
getSelectionStrings()

Gets the string representations of the items in the selection list. The strings will be in the format used by the scripting language.

Return type:list list

Derived from api method maya.OpenMaya.MSelectionList.getSelectionStrings

getSymmetricDifference(other)

Also known as XOR

Return type:SelectionSet
getUnion(other)
Return type:SelectionSet
intersection(other)
isEmpty()

Specifies whether or not the selection list contains any items.

Return type:bool

Derived from api method maya.OpenMaya.MSelectionList.isEmpty

isSubSet(other)
Return type:bool
isSuperSet(other, flatten=True)
Return type:bool
pop(index)
Return type:PyNode
removeAtIndex(index)

Removes the item at the given index from the list.

Parameters :
index : int

The index of the item to be removed

Derived from api method maya.OpenMaya.MSelectionList.remove

Undo is not currently supported for this method

symmetricDifference(other)
union(other)

Previous topic

pymel.core.nodetypes.SelectionListOperator

Next topic

pymel.core.nodetypes.SequenceManager

Core

Core Modules

Other Modules

This Page