Skip to main content
Question

Variants with Different Default Boolean States?


cupps

Hopefully this makes sense: wondering if/how a variant within a component can have a different default state of a boolean property that is for a layer’s visibility?

For example, this is my desired outcome, where Layer 01’s visibility is assigned to a boolean property. But whenever I change the visibility of Layer 01 it toggles it for all variants. Is there not a way to set one variant to have it on, and another to have it off, so the default state for variants can have a different boolean state?

Component

  • Variant 01
    – Layer 01 - Off (Boolean Property)
  • Variant 02
    – Layer 01 - On (Boolean Property)
This topic has been closed for replies.

3 replies

  • 31 replies
  • March 19, 2024

Just use different property for each variant if you want to control them independently of each other.


cupps
  • Author
  • 7 replies
  • March 19, 2024

Ah, simple and clever solution. Thanks!

I’d hope this would be something a single property could support, different default states for a boolean property.


Bastian_Renner

Hey there, I was also trying to manage a component with different variables and within the variables different visibility states for each layer (every layer has a boolean property and is a nested component). But when I switch the visibility for a layer to ON, it changes the visibility in every variant…

  • Variant 01
    – Layer 01 - Off (Boolean Property 1)
    – Layer 02 - Off (Boolean Property 2)
    – Layer 03 - Off (Boolean Property 3)

  • Variant 02
    – Layer 01 - Off (Boolean Property 1)
    – Layer 02 - ON (Boolean Property 2)
    – Layer 03 - Off (Boolean Property 3)

and so on… unfortunately that’s not possible…

any ideas?


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings