Modifier templates

Modifier templates are a way for you to define modifiers with preconfigured settings for quick access. This is useful in situations where you need to apply the same modifier(s) with the exact same settings to different datasets repeatedly. The modifier templates you define are preserved across program sessions and can even be transferred between computers. Furthermore, a modifier template can consists of several modifiers allowing you to insert often-used sequences or combinations of modifiers into the data pipeline with only one click.

Modifier templates are managed in the application settings dialog. Note that the pipeline editor contains a button to quickly open that dialog. All modifier templates that you define are available application-wide and OVITO will remember them across program sessions.

New templates are defined on the basis of existing modifiers in the active data pipeline. That means you basically "save" one or more modifiers including their current settings to make them available for future use. Once defined, modifier templates appear in the drop-down list of available modifiers behind the standard modifiers. From here they can be quickly applied to new datasets. This feature is useful if you need to use the same modifier(s) with the exact same settings over and over again.

Another typical use case of modifier templates are user-defined script modifiers. The Python script modifier allows you to enter a script function that performs user-defined operations. You can save a Python scipt modifier as a modifier template to make it usable like the built-in modifiers. Since the script code is part of the template, this relieves you from keeping the script in an external source file, which needs to be searched and loaded each time you use the script modifier.

Modifier templates are stored in the application settings file. If needed, they can exported to a separate file in order to transfer them to another computer or for backup purposes.