Figma Support Forum

Flatten all layers

Is there a way to create a plugin that Flattens the layers into a single vector layer of all the Frames that you may have in you page?


Yes, you can flatten nodes using the figma.flatten() method.

:wave: Hey @Pavlos ,

There is a command to flatten each selected layer in Automater

If you need to flatten a group of elements, i recommend you to group these first by using Group By Parent which is also available in the plugin.

  1. Select all the layers you plan to group
  2. Group by Parent
  3. On resulted groups, use Flatten Each