Script to create bounding boxes
Posted: Sun Sep 11, 2011 5:20 pm
Hello,
Something I find myself doing fairly often is drawing boxes around objects. I've been doing this by placing vertical and horizontal lines at the four minimum/maximum points, then connecting them. However, it's not always easy to tell exactly where the minimum X, maximum X, minimum Y, and maximum Y points are. I thought a script that draws a bounding box around a selected entity would be a useful addition. But I don't see any way to access the necessary information. Even if I have to cycle through the coordinates of all the selected points, that would be fine. I just don't see a way to get any information about anything that's already selected. Is there a way to do that?
Regards,
Denver
Something I find myself doing fairly often is drawing boxes around objects. I've been doing this by placing vertical and horizontal lines at the four minimum/maximum points, then connecting them. However, it's not always easy to tell exactly where the minimum X, maximum X, minimum Y, and maximum Y points are. I thought a script that draws a bounding box around a selected entity would be a useful addition. But I don't see any way to access the necessary information. Even if I have to cycle through the coordinates of all the selected points, that would be fine. I just don't see a way to get any information about anything that's already selected. Is there a way to do that?
Regards,
Denver