Skip to main content
Solved

Is there any way to batch add autolayout?


Lucas

I would like to be able to select multiple layers and add autolayout to each of them with one click rather than having to shift+A them one at a time.

In my example above, I would like to add autolayout for each swatch. Only way I know is to go through them one by one. If anyone knows a work-around or plugin I would love to hear about it.

Best answer by Gleb

Automater plugin can do it.

View original
This topic has been closed for comments

Slava_Bronevitskiy

Such a question is usually an indicator that there is a better way to organise stuff. I’d approach this by creating 1 master component with auto layout. Then add N amount of instances, each with own color (as an override). Voila. You even have an opportunity to synchornize every swatch in every subsequent design if you make changes later.


Lucas
  • May 5, 2021

@Slava_Bronevitskiy Thanks for your reply. I suppose I should have specified that the screenshot was to illustrate the mechanics of what I am trying to do, not the actual use-case.

Indeed, starting a fresh component is the way to go 95% of the time. However, sometimes this is not possible or even ideal… such as refactoring certain legacy components.

There are numerous batch operations that figma provides our of the box (batch renaming comes to mind) or which are provided via plugins (changing multiple text, batch styling etc). I am just looking for that same convenience for applying auto-layout.


Gleb
  • New Participant
  • May 6, 2021

Automater plugin can do it.


Lucas
  • May 6, 2021

Amazing, exactly what I was looking for. Thanks @Gleb 🙂


BorojiDesignInc

I was having the same issue, the Automater plugin solves it. I was even looking for a plugin that select nested elements in bulk selection and this plugin also does that. Thanks @Gleb


waitfornight6

Yessss. Thank you so much, it is a really great plugin


Paul_Brouwer

@Gleb do you have a walkthrough? I can’t figure it out myself… for some reason automaton doesn’t run Set Autolayout to my current selection


Gleb
  • New Participant
  • May 24, 2022

You are using the wrong plugin. It’s Automater


Paul_Brouwer

Oh awkward… haha thanks!


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