Using Variants in Blender

Hi guys,
I am new to blender and i am creating a product configurator. I understand that you can use Variants to be able to change the colours for example. I also want to be able to show and hide part of the image.

Can someone show me how to do it? I have looked on youtube tutorials but when i try and do the same thing I can’t see the colours of the cube changing.

Thanks all
JD

There are many, many, many ways to achieve this.

1 Geonodes switch material index

2 Material node key frame colour.

3 Keyframe material index through python

Showing and hiding models/ materials can be achieved by similar many methods.

Hope that helps

2 Likes

You would have to state which kind of functionality you need exactly but from I think geometry nodes will probably give you the best flexibility unless you want to create a more complex Python addon.

1 Like

If you want a natural blending from color A to color B, you have to set the material.

The simplest configuration is Mix Shader.
You can work with various conditions in multiple ways.

There may be various ways, so it’s best to show a sample including a description of the desired result.

1 Like

2 examples with geonodes.

2 Likes

Thanks for this guys. I am very new so i have been looking at some tutorials of what you have mentioned. Basically I am creating an online product configurator which changes the colour of the product depending on which button you click.

The thing is the software i use needs to assign ‘Variants’ to the different colours. I have been trying to get the variant functionality to work but havent managed to. I put a screenshot to the variants functionality in the image

It appears that you are using some addon. the “gltf Variants” thing is not default Blender.

I think it’s a matter of that function.
This is not using any special features of the blender.
It’s just about setting up multiple materials and choosing that list.

Addon may not work properly or it may be a setup problem.
I don’t know what version of blender this Addon supports

※ What appears to be a mixture of materials is the effect of showing in the software.