Rules & Modules

What are Rules?

The ability to create rules is one of the key features within Optim. These allow powerful customization, optimization, and automatization options to be specified, saved, and re-used. Rules are separated into three categories: general rules, specific rules, and per element rules.

Developer Note

Rules are an ever evolving feature within Optim. Improvements and new additions are being added constantly. Don’t see a rule option that you absolutely need? Send us a feature request ticket with a description and examples of what you want.

Smart Rules

Smart Rules are rules that have been generated based on presets that we have established. Generating smart rules is a great way to quickly and effectively optimize files for quick iterations. Currently, only the Geometry section has Smart Rule Generation.

Regular Rules

Regular rules allows users to exactly target a specified group of elements and apply customization and optimization options to them.

What are Modules?

Modules are the sub-item makeup of a rule. There are three different types of modules – Default, Filter, and Action modules.

Default Modules

These will always appear inside of a rule of that Element type.

Filter Modules

Filter modules give specific options to filter in or filter out Elements.

Filter By Name

Filter by the name of the Elements.

Associated Element: Geometry

Filter By Layer

Filter by the layers found within the file

Associated Element: Geometry

Filter by Size

Filter by the volume, x, y, or z size of the Elements.

Associated Element: Geometry

Filter by Location

Filter by the x, y, or z world location of the Elements.

Associated Element: Geometry

Filter By Triangle Count

Filter by the triangle count of the Geometry Elements. Triangle count is currently a close estimation due to Datasmith restrictions. This filter is disabled for non-Datasmith files.

Associated Element: Geometry

Filter By Material

Filter by the material name found with Geometry Elements.

Associated Element: Geometry

Filter By Metadata

Filter by the metadata of the Geometry Elements.

Associated Element: Geometry

Filter By Selection

Allows the user to select the Element(s) that they wish to include in the rule.

Associated Element: Geometry, Material

Filter Comparators

Comparators are used to set how the filters compare the input value with the available data set.

Text Based Comparators
Contains / Not Contains

Sets to filter to check if any of the available data — contains or does not contain — the input text.

Starts With / Not Starts With

Sets to filter to check if any of the available data — starts with or does not start with — the input text.

Ends With / Not Ends With

Sets to filter to check if any of the available data — ends with or does not end with — the input text.

REGEX (Regular Expressions)

Sets to filter to check if any of the available data — matches the REGEX pattern.

3rd Party Resource Links

Regexr

LMU Computer Science

Numeric Comparators

Greater Than / Equal To

Sets to filter to check if any of the available data — is greater than or equal to — the input value.

Less Than / Equal To

Sets to filter to check if any of the available data — is less than or equal to — the input value.

Equal To

Sets to filter to check if any of the available data — is equal to — the input value.

Action Modules

These modules give powerful customization and optimization options.

Table of Contents