# Plugin Configuration and Preset Management

Often, plugins have extensive sets of options which would normally need to be set whenever the plugin is to be run. Hub provides a way to create settings presets which can be saved once and loaded multiple times, saving you time and effort.

Setting Presets are saved for the project and the plugin where you create them.

## How to Save Plugin Setting Presets

Navigate to the project where you'd like to set the preset, and go to *Settings* -> *Plugins*. Click on *Open* on the plugin you'd like to set the preset for.

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FYFqE0YMuGR63OxlGLVbJ%2Fimage.png?alt=media&#x26;token=d5861c8e-a7cf-4929-a322-0ac809cb662b" alt=""><figcaption></figcaption></figure>

The *Run Plugin* dialog will open. From the form on the right, set your plugin's settings, for example, the Class Mapping and the Config JSON.

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FUTjaxswnlH0WDLW3pp0x%2Fimage.png?alt=media&#x26;token=7d78b09e-6289-4bd8-a7be-b55b34200ccf" alt=""><figcaption></figcaption></figure>

Click on the <img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FeJLjqCrYQGwDAMrhNlBu%2Fimage.png?alt=media&#x26;token=5f148ef3-a122-44f0-be4a-03424c4760f1" alt="" data-size="line"> button.&#x20;

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FMvRhukcXkpsvneSKG8Ws%2Fimage.png?alt=media&#x26;token=a438478d-fbe7-43b3-a24e-f1a49b183179" alt=""><figcaption></figcaption></figure>

The preset manager will pop up:

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FD6eQaIWdQKmshvqkMQUa%2Fimage.png?alt=media&#x26;token=f3454fa6-e5b5-4a2f-b326-2ef640d62fc4" alt="" width="563"><figcaption></figcaption></figure>

Write the name of your new preset and click on *Add*. Your current settings will be saved as a preset which you can load again later. Click on the floppy disc icon of a preset to update the preset with the current settings.

## How to Load Plugin Setting Presets

### From Settings

Navigate to the project where you'd like to set the preset, and go to *Settings* -> *Plugins*. Click on *Open* on the plugin you'd like to set the preset for.

The *Run Plugin* dialog will open.

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FzSID3U9OJAGMt46wPLta%2Fimage.png?alt=media&#x26;token=65fe591a-7915-4432-bd7a-54cc2fce870d" alt=""><figcaption></figcaption></figure>

From the form on the right, click on the dropdown named *Load Preset*, then select the preset you'd like to load.

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FTJkgf9mBi6NtaCjpUNUL%2Fimage.png?alt=media&#x26;token=2f5a208b-a7b9-4251-813b-4728a6f96fa0" alt="" width="563"><figcaption></figcaption></figure>

When you click on a preset, its settings will be loaded. You can then press on *Run* to run the plugin.

### From Editor

To run the plugins from the labeling editor, open the asset you'd like to run the Model plugin on, then click on the <img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FcyOwNJY20qpTlGqswhBZ%2Fimage.png?alt=media&#x26;token=89f0352b-3ee9-4573-8def-206837ebb678" alt="" data-size="line"> icon above the asset. A dropdown will open listing all Model plugins active in the current organization along with their presets.

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2F8v5YZQIg2ZuvIGE18XtJ%2Fimage.png?alt=media&#x26;token=2d16f555-cd86-47f0-9065-a5ce88c144ac" alt="" width="563"><figcaption></figcaption></figure>

If you have set a preset, click on the name of the preset to run the plugin.

***

If you have not set a preset, or if you wish to run the plugin using a preset other than the available presets, click on the gear icon to the right of the name of the plugin you'd like to run.&#x20;

From here, you'll be able to load an existing preset by clicking on the *Load Preset* dropdown and picking one, or you can tweak the plugin's settings manually and run it without setting or loading any preset.

### From Workflow

You can load a plugin preset when setting up a plugin that will be run automatically as part of a [workflow](https://docs.imerit.net/core-concepts/workflow).

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FFgRKuU8rn6BQJAz70bG1%2Fimage.png?alt=media&#x26;token=be0f2790-4893-4d3a-a74d-39bb5c6d2285" alt=""><figcaption></figcaption></figure>

To do so, navigate to your project, then the Workflow tab, and click on the Plugin stage where you'd like to load the preset. This dialog will appear:

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FJNihKXVUScc5LQUgy1bR%2Fimage.png?alt=media&#x26;token=cb67ec35-48b3-4447-bc8c-ca4b2fa91efb" alt="" width="375"><figcaption></figcaption></figure>

Click on *Load Preset* to pick among one of the presets saved in your project for the plugin selected to load a preset. Click on the 'broom' icon to clear all settings and unselect the preset.
