Center Point of Group/Component Plugin?
-
Hi everyone Sketchup guru. I want to ask you, whether there is a plugin that can find the center of the model (group, component) by axes length, width or height?
-
When you group an object sketchup will automatically show you the center or 'midpoint' of the object on any given side. But this center point I'm not sure of. I would think it already exists. We'll soon see. I'd like to have it as well.
p.s.
I would change the name of this thread to "Center Point of Group/Component Plugin?"
If no one knows of one, then make a new thread here in the plugins section titled "[REQ] Center Point of Group/Component Plugin" -
There a several, two spring to mind.
Tig's Center Point All http://sketchucation.com/forums/viewtopic.php?p=71681#p71681
and from Smustard Todd Burch's Centerpoint http://www.smustard.com/script/CenterPointThere is a small but useful difference between them.
With Tigs, if you select multiple components it will give each a center point whereas Todd's would place one centerpoint at the mid point of the multiple selection. -
Very nice Box... Thanks.
-
ThomThom's Boundingbox will make faces on the bounding box...then one small step to figure out the centers from there.
-
@alvis said:
Hi everyone Sketchup guru. I want to ask you, whether there is a plugin that can find the center of the model (group, component) by axes length, width or height?
Do you mean the real world coordinate, the component local coordinate, or something else?
If it is the real world coordinate then this one-liner pasted into the Ruby Console will give you that of a selected component or group.
s=Sketchup.active_model.selection;s.first.bounds.center
If it is the local coordinate then
s=Sketchup.active_model.selection;s.first.bounds.center.transform! s.first.transformation.inverse
Advertisement