[Request] Quick & Dirty lay flat

If someone is interested, can you make this one (in Python):

  • Call the script via macro or keystroke
  • if object wasn’t pre-selected, an option to select the object
  • click on a planar face of the object
  • that face lays flat on world plane

that’s it

whatever orientation that face happens to be in space is how it plops to Z=0
(as in, there’s no describing the plane using something like Orient3pt)

for example, say you select a surface with Auto CPlane turned on. Whatever that chooses for X,Y,Z can just keep X,Y point the same and just remaps to the regular cplane with Z being at zero.

just looking for a one-click deal to get an object laying flat with desired surface facing downwards.

thanks

1 Like

Do you want to just move the bottom face or do you want to reorient the entire object such that the bottom face is z= 0

1 Like

the whole object moves

Hello,
It can be run in ScriptEditor in Rhino8.
I made it so easy that it might work weird…


SetFaceToXYPlane.cs (1.3 KB)

Hi @11159 – How would I possibly make this work for meshes?

Thanks for posting!

Hi, @Alan_Farkas

I have not touched Mesh much, so I don’t know how to find the proper normals for a pentagonal or larger mesh,

so I tried to run it for triangular and quadrilateral mesh faces.

If I need more than pentagons, I will try to figure out how to do it.
SetMeshFaceToXYPlane.cs (1.7 KB)

Amazing, thanks so much!

1 Like