# 'Has one or more variants selected from' type of restriction

The most common method is creating restrictions between two or more variants, as this approach covers most product configurator requirements. Depending on the option set type and how each variant is defined, you can hide or display a material (color), a 3D part, or an entire 3D model.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FuM5ReVO7WEMVUW5wJUl3%2Frestrictions.png?alt=media&#x26;token=0499a0f4-4605-468f-b301-86249062d5f9" alt=""><figcaption><p>Ways of defining a variant </p></figcaption></figure>

{% hint style="warning" %}
**The effect of a restriction on a variant depends on how that variant is defined, as shown in the image above.**
{% endhint %}

Let's take the ring configurator example below:

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FjWhT0B4vkn6u2ogy6Raq%2FScreenshot%202025-02-03%20at%2016.45.40.png?alt=media&#x26;token=8e7db61e-59ad-444e-9345-5a2d3db9e424" alt=""><figcaption><p>Ring with metal and stone variants selection</p></figcaption></figure>

We have a ring configurator made from 2 'Thumbnail' blocks: **Metal** and **Stone**. We already learned how you can add a [Thumbnail](https://docs.simplio3d.com/learning-the-app/products/create-options/thumbnails) option set in another chapter. For Metal we have 3 variants and for Stone we have 4 variants. **I want to create a restriction when I select White gold (the first metal variant) to have only 2 stone options: white and black diamond.** How will I proceed?

First, we access the "Create Options" tab and see the 2 added Metal and Stone option set blocks.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FfrkDWKDsr0uzVj1yLYqx%2FScreenshot%202025-02-03%20at%2016.51.21.png?alt=media&#x26;token=602c2534-9b36-46d0-875f-8a0c03e30ce0" alt=""><figcaption><p>Metal and Stone 'Thumbnail' option sets</p></figcaption></figure>

In this case, we have 2 sets of Thumbnail options and the constraint effect will be in terms of which materials (color) will be visible and which will not. Since, I mentioned that my restriction will be on Stone depending on which Metal I select, I will need to click on the Stone option block and apply restrictions to the *amethyst* and *sapphire* variants or whatever variants you need to restrict depending on the configurator.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2Fkp7ohWxH4Cq8qJkE8sxn%2FScreenshot%202025-02-03%20at%2016.53.38.png?alt=media&#x26;token=cd726c17-1159-4ff3-8391-87a1a620dae4" alt=""><figcaption><p>Apply restriction for 'amethyst' and 'sapphire' variants in relation with 'white' gold variant</p></figcaption></figure>

We click on the "chain" button on each of the variants to apply the restriction regarding "white" gold.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FcPgDkA492RmZPiFO23Mu%2FScreenshot%202025-02-03%20at%2018.33.38.png?alt=media&#x26;token=fe81ef08-f8b6-4174-824b-38c3d7dcc6f6" alt=""><figcaption><p>Add restriction - version 1</p></figcaption></figure>

Or

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FSfrwsZg8SB9AEWVy1GDE%2FScreenshot%202025-02-03%20at%2018.29.00.png?alt=media&#x26;token=bfcabbd1-92c4-4398-bc17-1713a8039354" alt=""><figcaption><p>Add restriction - version 2</p></figcaption></figure>

**The above conditions are the same.** Once I have applied the restrictions for the 2 variants, I should have each of the "chain" icon buttons marked with an asterisk, as shown below.&#x20;

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2FfKpuQB7T3Qc4f2XGETvT%2FScreenshot%202025-02-03%20at%2017.28.56.png?alt=media&#x26;token=646777e4-0663-43e9-bdf4-33f96f78c867" alt=""><figcaption><p>Variants with restriction applied</p></figcaption></figure>

To save the newly added restriction, we first click "Save" and then "Preview" for a quick test.

<figure><img src="https://272360655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnWstJiDljIGTKDHKp9JL%2Fuploads%2F1KJCnKy4aACzokz92duF%2FScreenshot-2025-02-03-at-18.18.42.png?alt=media&#x26;token=af11ebc3-c739-4950-b655-07fffe081859" alt=""><figcaption><p>Effect of restriction</p></figcaption></figure>

If we select the "White" gold, there will only be 2 diamonds, White and Black. If we change the gold to yellow, we will have all 4 diamonds available.&#x20;

{% hint style="info" %}
The same logic can be applied to hiding 3D parts, just make sure to select only the 3D part in the variant, not the material.
{% endhint %}
