List all objects in the world that pass a given filter.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
item (it) | unicode | ||
|
|||
nodeArray (na) | bool | ||
|
|||
reverse (rv) | bool | ||
Only available in conjunction with nodeArray flag. Reverses the order of nodes in the returned arrays if true.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
selection (sl) | bool | ||
|
|||
sort (so) | unicode | ||
|
Derived from mel command maya.cmds.lsThroughFilter
Example:
import pymel.core as pm
# Return all objects in the model that are named bob.
# (See the command "itemFilter" for how to construct these filters.)
pm.lsThroughFilter( 'texturesNamedBobFilter' )
# Return same objects as above, but sorted in reverse
# alphabetical order:
pm.lsThroughFilter( 'texturesNamedBobFilter', na=True, sort='byName', reverse=True )