When you create a filter for the Inputs table or the Outputs table in a dataflow window the Geometry Variables or Selected Geometry variables view, you can base the filter on another filter, or on a filter template. A filter template is like a normal filter, but it cannot be changed or deleted. In addition, the appearance of the Edit filter dialog box varies depending on the type of template that a filter was created from.
The following types of filter templates are available:
This template lets you define an arbitrary Python expression. Only items for which the expression is true will be displayed in the table.
For example, to define a filter that selects variables that belong to objects whose name is longer than 15 characters, enter the following expression:
len(object.name) > 15
Rule-based: This template lets you define a set of rules that compare an attribute of the items in the table to a specified value. The available operations include numeric and string comparisons. You can combine multiple rules by conjoining ("AND") or disjoining ("OR") them. Only items for which the set of rules is true will be displayed in the table. See Edit Rule-Based Filter Dialog Box.
For example, to define a filter that selects variables named position_x whose value is greater than 0.0:
Click Insert new item
() to add a row to the Edit Filter
dialog box.
In the Name column, select name.
If necessary, in the Operation column, select =.
In the Value column, type position_x.
Click Insert new item
() to add another row.
In the Name column, select value.
In the Operation column, select >=.
In the Value column, type 0.0.
Menu-based: Similar to the rule-based template, this template pre-defines one rule for every attribute of the items in the table. You can modify the rules and enable or disable them. Only items for which the enabled rules are true will be displayed in the table. See Edit Menu-Based Filter Dialog Box.
For example, to define a filter that selects only Float variables:
Click in the first column for the row whose Name value is type. A check box appears in the first cell.
Click the check box to select the row for the filter.
If necessary, change the Operation cell to =.
If necessary, change the Value cell to Float.
This template lets you set values for criteria that are pre-defined based on the type of item being filtered. Only items that match the specified criteria will be displayed in the template. See: