Prototype action: Set variable to default value

Use case: I have a product card with a main image and a row of color swatches underneath it. Right now, clicking a swatch updates the product image to the correct color via setting a string variable (e.g. on click, set variable to “Product_Blue”). It also give the swatch a black stroke indicating it’s the selected color. So far so good.

I would like to add functionality where it updates the product image while hovering but then resets it when the mouse moves away. This is currently impossible, as the variable reassignment sticks.

This thread suggests using mouse enter/mouse exit, but this doesn’t work in my example because there are as many possible mouse exit variables as there are swatches (how would we know which swatch was selected before hovering over another?)

So, I’m proposing that there be a way to set the value of a set variable action to “default”, AKA whatever value is stored in your local variables.

Thanks :slight_smile: