Go to: Synopsis. Flags. Return value. MEL examples.
itemFilterType [-defineTemplate string] [-edit] [-exists] [-query] [-text string] [-type] [-useTemplate string]
filterName
itemFilterType is undoable, queryable, and editable.
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.
defineTemplate, edit, exists, query, text, type, useTemplate
Flag can appear in Create mode of command
|
Flag can appear in Edit mode of command
|
Flag can appear in Query mode of command
|
Flag can be used more than once in a command
|
string or string[]
// Create a filter that will pass all spot lights and transforms.
//
string $filter = `itemFilter -byType transform -byType spotLight`;
// Now query the type of the filter.
//
string $type = `itemFilterType -query -type $filter`;
print ("Filter type: " + $type + "\n");
// Delete the filter.
//
delete $filter;