pymel.core.general.itemFilterType

itemFilterType(*args, **kwargs)

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.

Flags:

Long Name / Short Name Argument Types Properties
text / t unicode ../../../_images/query.gif ../../../_images/edit.gif
  Defines an annotation string to be stored with the filter
type / typ bool ../../../_images/query.gif
  Query the type of the filter object. Possible return values are: itemFilter, attributeFilter, renderFilter, or unknownFilter. Flag can have multiple arguments, passed either as a tuple or a list.

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 )