> For the complete documentation index, see [llms.txt](https://infinitypbr.gitbook.io/magic-pig-games/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitypbr.gitbook.io/magic-pig-games/equipment-systems/blend-shapes-preset-manager.md).

# Blend Shapes Preset Manager

{% embed url="<https://www.youtube.com/watch?v=afUwR50zklc>" %}

## Set a preset at runtime

You can instantly set the values of a preset at runtime using its name or index. Values that are set to "random" will be randomly generated at this point.

```csharp
blendShapesPresetManager.ActivatePreset(0); // Set to the first preset
blendShapesPresetManager.ActivatePreset("Random"); // Set to the "Random" preset.
```

## Transition to a preset at runtime

You can also transition over time to a preset. This is the same end result, but rather than setting it instantly, the change will happen in the timeframe you set in the Inspector.

```csharp
blendShapesPresetManager.StartTransitionToPreset(0); // Transition to the first preset
blendShapesPresetManager.StartTransitionToPreset("Random"); // Transition to the "Random" preset.
```
