While I think this would of course be good, it would be even better to put this kind of functionality at a more useful level: where the interactions themselves happen.
Replacing things with variables is OK, but it would be a lot easier to have logic like this on the object(s) in question. So “OnClick, add dn] to VariableName, and go to Object/LayerName” or “OnHover, if VariableName = an] then go to ObjectName” or whatever.
Putting logic into the variables themselves seems a bit too hard to manage as you have to keep track of everything using those variables (and there’s nothing in the UI that gives you a list of that either).
I agree… however I am not talking about interactivity at this level, but to set the styles and style variations that will be associated with a particular project. At the moment I am putting together a design system template that I can use right across all of my projects as a starting point and I can now design “the look” of apps and websites by setting variables without even going into the components themselves. This means that things like spacing could be relative to the sizes and proportions of other elements within the design.
Oh OK. So a bit like modes but in a more granular/controllable way?
👍 Precisely. More granular/controllable, but in conjunction with the current mode method now.
Very much agree!!! Would really need this to use variables in an enterprise level project.
This would supercharge variables! 🚀
Particularly useful when working with Modes, as we can’t currently “Set variable:Mode
” to perform the expressions interactively.
I am looking for this functionality to help create a type ramp based on ems.
Hi there, Thank you for sharing your thoughts! I completely understand how handy this feature would be.
We use votes to gauge community interest and prioritize accordingly, please vote up top if you excited to this idea to life.
I also found a similar idea that you might find interesting: Using expression as a variable’s value Feel free to take a look.
Thanks again for your feedback.