Skip to main content
DaveM
Feb 18, 2021 4:52 PM UTC

Add ability to align to key object

It would be great if you could add the option to align multiple objects to a key object (like in Adobe Illustrator).

You can see more here: Select & Align to Key Object | Illustrator Tutorial

If anyone else wants this or has other alignment suggestions please upvote this topic and comment.

    29 replies

    Steven
    Mar 1, 2021 6:01 PM UTC

    There’s this plugin I’ve been using for a few years, and it does the job very well.

    Align To

    chudoloo
    New Participant
    Mar 1, 2021 6:45 PM UTC

    +1. I miss this feature from Illustrator. The “click to set key object” feature linked in above video would be nice to have in Figma natively.

    DaveM
    DaveMAuthor
    Mar 1, 2021 7:28 PM UTC

    That’s good to know about. Thanks. It would be nice to have this natively in Figma though

    Carlos_Pascacio
    Jul 15, 2021 2:47 AM UTC

    Yeah, we need this feature ASAP.

    DP-SD
    Jul 15, 2021 6:11 AM UTC

    After moving some projects to Figma, it was one of the first features I looked for, but couldn’t find. Needed, indeed. Quite basic. Plugins are cool, but such functionality should be part of the core solution.

    Andrei_Iancu
    Jul 15, 2021 10:18 PM UTC

    You can get a similar effect by using frames and in combination with Automater plugin.

    Here are the steps you have to do:

    1. Frame the elements including the anchor
    2. Select the layer that you want to use as an anchor
    3. Use “Resize Parent” command from Automater
    4. Align layers one by one using native features or use Align features from Automater to align multiple layers at once.

    Let me know if you want to see the flow recorded. 😁

    Klesus
    Dec 9, 2021 10:47 AM UTC

    I’ve spent an embarrassingly long time trying out different methods to do alignment operations efficiently with different anchor points.

    What I can tell you is that unless the anchor is smaller than the other alignment object, you don’t need to fiddle with telling figma which object is the anchor.

    There are two alignment fundamentals you need to know to align stuff quick and efficiently:

    1. Alignment on a single object/frame/group selection aligns relative to the parent frame
    2. Alignment on multiple selection aligns to the selection bounding box.

    We can use this information to align things however we want.
    In your example for instance, the button text is smaller than the button. So if you align to bottom then the text will move into the button area and thus the button area is the same as the selection bounding box, and any alignment actions will only apply to the text. This requires equal or less clicks than assigning anchors, but even so I’d recommend learning the alignment hotkeys to significantly speed up the process.

    If the alignment object is larger than the anchor object then you have to jump through some framing hoops if you want to center align a larger object to a smaller one (the quickest way I’ve found at least).
    Align

    The steps written out goes like this:

    1. Wrap the smaller object in a frame (ctrl/cmd +alt/opt + G)
    2. Hold ctrl/cmd + alt/opt and drag the edge of the new frame facing the larger object
    3. Drag the larger object into the frame (hold down shift if you only want to align it parallel to the anchor object)
    4. With only the larger object selected, align it to your liking
    5. (Optional I guess) Select the parent frame and remove it (ctrl/cmd + shift + G)

    This is a workflow I’ve become comfortable with. Maybe using a plugin is more convenient, but this is just my two cents on how to aligns things.

    deletedlc
    Dec 14, 2021 9:25 PM UTC

    jeez, if there’s ONE thing I miss about Illustrator it would be this…

    Clark
    Dec 24, 2021 7:36 PM UTC

    Yes please. The ability to select a key object (regardless of size) by clicking on it again should be a basic native feature. Please fix!

    Ahmed_Abdalla2
    Jun 8, 2022 8:19 AM UTC

    And most importantly double click to select the key object after selecting both objects just like the illustrator.