Go to: Synopsis. Return value. Flags. MEL examples.
itemFilterType [-text string] [-type]
string
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.| string | |
| string[] |
In query mode, return type is based on queried flag.
| Long name (short name) | Argument types | Properties | ||
|---|---|---|---|---|
-type(-typ)
|
|
|
||
|
||||
-text(-t)
|
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;