Extensions
  • Home
  • Add-ons
  • Themes
  • Approval Queue
  • About
  • Upload Extension
  • Sign in
  • BLENDER.ORG

    • Download

      Get the latest Blender, older versions, or experimental builds.

    • What's New

      Stay up-to-date with the new features in the latest Blender releases.

    DEVELOPMENT

    • Roadmap

      See which projects are currently being worked on and what's next.

    • Documentation

      Guidelines, release notes and development docs.

    LEARNING & RESOURCES

    • Blender Studio

      Access production assets and knowledge from the open movies.

    • Manual

      Documentation on the usage and features in Blender.

    • Benchmark

      A platform to collect and share results of the Blender Benchmark.

    • Blender Conference

      The yearly event that brings the community together.

    DONATE

    • Development Fund

      Support core development with a monthly contribution.

    • One-time Donations

      Perform a single donation with more payment options available.

All Add-ons

Add-on Lay Flat
Lay Flat

Lays an object flat on the XY plane based on the selected face.
Add-on by Pavel-Karoukin
About Reviews Version History
Example of laying flat and centering object at the origin.

A lightweight and efficient Blender add-on that perfectly aligns and rests any 3D object on the ground (XY plane, where Z=0) based on a selected face. This is particularly useful for 3D printing preparation, architectural visualization, or anytime you need an object to sit completely flush against a surface.


Usage Guide

  1. Select Object: In the 3D Viewport, select the mesh object you wish to lay flat.
  2. Enter Edit Mode: Press Tab to switch into Edit Mode.
  3. Select Face: Select the specific face that you want to act as the bottom of the object (the face that will rest on the ground).
  4. Open Sidebar: Press N to open the Sidebar menu on the right side of the 3D Viewport (if it isn't already open).
  5. Run Tool:
    • Locate and click the Lay Flat tab on the right edge of the Sidebar.
    • Click the Lay Flat button.
    • Alternatively, you can press F3 to open the search menu, type "Lay Flat", and select the operator.

The object will instantly be rotated and moved so that the selected face sits exactly flush against the Z=0 plane!


Technical Details (How it Works)

For developers and advanced users, the script performs the following mathematical transformations securely via Blender's mathutils:

  1. Normal Extraction: It extracts the selected face's normal and center point.
  2. Global Space Conversion: It converts the local normal into global space, utilizing the transposed inverse of the object's 3x3 world matrix. This ensures the calculation remains robust even if the object has been non-uniformly scaled.
  3. Rotation Calculation: Calculates the quaternion rotation required to align the global face normal directly downwards toward (0, 0, -1).
  4. Transformation:
    • Translates the object so the face center moves to the origin.
    • Applies the newly calculated rotation matrix.
    • Translates the object back to its original X and Y coordinates, whilst snapping its Z coordinate exactly to 0.0.
  5. Matrix Application: Safely overrides the object's matrix_world all in a single step for optimal efficiency and precise floating-point behavior.

What's New

No changelog for this release.


Permissions

This extension does not require special permissions.

Developer
Pavel-Karoukin
Rating
(2)
Version
1.0.0
Updated
1 w
Published
June 1st, 2026
Downloads
772
Size
3.0 KB
Compatibility
Blender 4.2 LTS and newer
Report Issues
github.com/hippich/blender_lay_flat_extension
License
GNU General Public License v3.0 or later
...or download and Install from Disk
  • 3.0 KB

Reviews

See all
  • iluvblender
  • v1.0.0
  • 5 d

Love this extension! Great job and thank you!

  • M-25
  • v1.0.0
  • 5 d

This should be integrated into the "3D print Toolbox" addon; this one: https://extensions.blender.org/add-ons/print3d-toolbox/

5.0

2 reviews
5
4
3
2
1
Rate this Add-on Report an issue
  • About
  • Privacy Policy
  • Terms of Service
About
  • Blender Foundation
  • Blender Institute
  • Blender Studio
  • License
  • Logo & Trademark
  • Credits
  • Privacy Policy
  • Code of Conduct
Organization
  • People
  • Jobs
Blender Network
Download
  • Latest Blender
  • Blender LTS
  • Previous Versions
  • Experimental Builds
  • Source Code
  • Requirements
  • Benchmark
  • Flamenco
Extensions
  • Add-ons
  • Themes
Developers
  • Get Started
  • Roadmap
  • Projects
  • Docs
  • Blog
  • Forum
  • YouTube
  • Python API
Blender Studio
  • Films
  • Training
  • Tools & Pipeline
Support
  • Manual
  • Community
  • FAQ
Get Involved
  • Documentation
  • Education
News
  • Press Releases
  • User Stories
Blender Conference
Follow Blender
Support Blender
  • Donate
  • One-time Donation
Artistic freedom starts with Blender The Free and Open Source 3D Creation Suite