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 filterFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

type (typ) bool ../../../_images/query.gif
 
Query the type of the filter object. Possible return values are: itemFilter, attributeFilter, renderFilter, or unknownFilter.

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 )

Previous topic

pymel.core.general.itemFilterRender

Next topic

pymel.core.general.license

Core

Core Modules

Other Modules

This Page