This command queries a named itemFilter object. This object can be attached to selectionConnection objects, or to editors, in order to filter the item lists going through them. Using union and intersection filters, complex composite filters can be created.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
text (t) | unicode | ||
Defines an annotation string to be stored with the filterFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
type (typ) | bool | ||
|
Derived from mel command maya.cmds.itemFilterType
Example:
import pymel.core as pm
import maya.cmds as cmds
# Create a filter that will pass all spot lights and transforms.
#
filter = pm.itemFilter(byType=('transform', 'spotLight'))
# Now query the type of the filter.
#
type = pm.itemFilterType(filter, q=True, type=True)
print( 'Filter type: ' + type + '\n' )
# Delete the filter.
#
pm.delete( filter )