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.
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.
Basically:
- Select all the layers you plan to group
- Group by Parent
- On resulted groups, use Flatten Each
2 Likes