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 | ||
|
|||
type (typ) | bool | ||
|
Derived from mel command maya.cmds.itemFilterType
Example:
import pymel.core as pm
# 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 )