Any methods to trigger built in align & distribute?

I’m trying to make a plugin that can user Figma’s own align & distribute functions.

Is there a way to either:

  • Trigger the native Figma commands via API or menu items?
  • Fake a keyboard shortcut (e.g. ALT+W) to make it work.

Any pointers appreciated. Thanks!

There are no methods for alignment and distribution in the Plugin API, except for the alignment properties of auto layout frames. You need to write these functions yourself.

1 Like