# Create plane by dragging in viewport

Is there a way to create a plane by click dragging in the view port? I'm trying to defining the plane using 2 corners interactively.

• Not natively no, as far as I know. Maybe this helps blendermarket.com/products/snap-utilities (commercial addon) Commented Apr 21, 2017 at 17:04
• link has expired Commented Jan 29, 2023 at 15:44

So, are you wanting to draw a diagonal line and it generate a rectangle? You'll have to write a script for that by using the Pythagorean theorem. But you can't determine a rectangle knowing it's diagonal length only. You must also know the width to length ratio because one diagonal length can have infinite variations of a rectangle. So, unless you want a hard coded width to length ratio, every time you draw your line you'll have to employ the extra step of determining the ratio by determining the slope of the line on an XY coordinate.

Example:

(X,Y)+(X౽,Y౽)= diagonal line

(X౽,Y౽-Y) = Other X vertex

(X౽-X,Y౽)= Other Y vertex

(X,Y)+(X౽,Y౽)+(X౽,Y౽-Y)+(X౽-X,Y౽)= rectangle

• Could you give more concrete indications? This is of no help regarding the question. Commented Apr 22, 2017 at 16:47
• First of all, his question was simply asking if you can make a plane by drawing a line. I answered it by stating he needs to write a script for that. If​ anything his question is a candidate for deletion for being vague and yet I went above and beyond to show him the math behind solving the problem. Should I develop the script for him too? You​ are not using the down vote as intended. Commented Apr 22, 2017 at 18:47
• @LetTheWritersWrite to be clear I DVed your answer, because it is plane wrong. You are not thinking of it the same way the OP is. Look at how sketchup does it as an example. Commented Apr 28, 2017 at 12:49
• @David "plane" wrong? Intended pun? ;-) Commented Apr 29, 2017 at 2:15
• "plane" wrong you guys kill me... sorry for the unclear wording, but yes the sketchup / Modo way of dragging out a plane is what I am looking for. Commented Jun 6, 2017 at 3:11