Skip to main content
Question

Can I set variable for layer opacity?

  • November 4, 2023
  • 1 reply
  • 1907 views

Amadeusz_Wasik

Long story short - I would like to set a variable for opacity for conditional logic. I don’t want to hide it (with boolean) as I don’t want to make the impact for space as the element is in auto layout.

I wasn’t able to assign a number nor string.

This topic has been closed for replies.

1 reply

IraX
  • Active Member
  • 145 replies
  • November 4, 2023

Can’t currently do that, although I’d enjoy it. But, you could use a component for the thing you want to change, and change the variant (same but with the opacity switch) with a text variable controlled by whatever action you have. It will also maintain its space in the auto layout stack.

change opacity


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