Back to Plugins
Really Flatten Vectors

Really Flatten Vectors

Figma plugin that flattens a vector into as few paths as possible. Overlapping paths will be simplified so only the outer shape is defined. The flattening happens in-place.UsageSelect some layersRun the plugin by going to Plugins > Really Flatten Vectors or pressing ⌘/ and searching for Really Flatten Vectors.LinksGitHubPersonal SiteKnown IssuesFlattening inside of a group/frame with auto-layout will not flatten in-placeSome invisible layers will be made visibleHow does it work?Generally, Figma simplifies paths when using the built-in flatten ⌘E on a union layer. This plugin simplifies the setup needed to get a pretty flattened output.Deeply ungroup/unframe the selection. This keeps positioning simple for some of the later operations.Outline all strokes. Since this plugin merges everything into one path, strokes cannot be preserved. All strokes and text are outlined.Use the first valid fill paint data to use as the output fill.Use Figma's built-in flatten to merge the layers. Figma is pretty intelligent and will place the resulting layer in the correct spot in the layer hierarchy.Create a union layer that contains the resulting layer from the previous step, and a clone of that same layer. This is because running the built-in flatten on a union with just one layer won't simplify the paths. If there is an exact replica inside the union, then the resulting layer will have simplified paths.Run the built-in flatten against the union.

illustrationsflattensimplifymergeiconsvectorunion

Plugin Preview

Really Flatten Vectors preview

About this plugin

Figma plugin that flattens a vector into as few paths as possible. Overlapping paths will be simplified so only the outer shape is defined. The flattening happens in-place.UsageSelect some layersRun the plugin by going to Plugins > Really Flatten Vectors or pressing ⌘/ and searching for Really Flatten Vectors.LinksGitHubPersonal SiteKnown IssuesFlattening inside of a group/frame with auto-layout will not flatten in-placeSome invisible layers will be made visibleHow does it work?Generally, Figma simplifies paths when using the built-in flatten ⌘E on a union layer. This plugin simplifies the setup needed to get a pretty flattened output.Deeply ungroup/unframe the selection. This keeps positioning simple for some of the later operations.Outline all strokes. Since this plugin merges everything into one path, strokes cannot be preserved. All strokes and text are outlined.Use the first valid fill paint data to use as the output fill.Use Figma's built-in flatten to merge the layers. Figma is pretty intelligent and will place the resulting layer in the correct spot in the layer hierarchy.Create a union layer that contains the resulting layer from the previous step, and a clone of that same layer. This is because running the built-in flatten on a union with just one layer won't simplify the paths. If there is an exact replica inside the union, then the resulting layer will have simplified paths.Run the built-in flatten against the union.

Plugin Details

Version1
CreatedApril 23, 2022
Last UpdatedApril 24, 2022
Categoryediting & effects plugins
Creatorsteven la
Stats3227 installs, 214 likes
PricingFree

Technical Details

  • API:1.0.0
  • main:code.js
  • Editor Types:
    figma