[Plugin] Center on Origin UPDATE May 23, 2013
-
Center on Origin
Description: Center a group or component on the model origin.
Usage: Activate this tool from Plugins>Chris Fullmer Tools>Center on Origin. It only works with groups and components, and you can only center one at a time. It does not rotate or change the scale of the object.
History
1.0 - 2009-04-29-
First release
1.1.0 2013-23-2013- Extension Class Compatibility
This is a request from this thread. Todd at smustard.com also has a very similar script that moves geometry to the origin, but it works slightly different. It does not center it on the origin. This one works the way it does because it was a special request.
(no audio on this video. 14 seconds long)
[flash=640,575:1k3bvtug]http://www.chrisfullmer.com/forums/center_on_origin.swf[/flash:1k3bvtug]Chris
1450
-
-
ooh I wanted this as well
Thanks!
-
It was a while that you have not create a new plug
-
very nice little toy, thanks for the contribution...
-
Very useful, Chris, thanks for taking the time to create it.
-
@unknownuser said:
It was a while that you have not create a new plug
I have literally been forcing myself to not write any, after the earlier innundation of scripts. I do have some ideas, and even one really cool one started, but I told myself I can't do more until I graduate (in like 2 or 3 weeks now!). Yeah, I need to focus on school for a little bit. Then I'll get back up and running on rubies again probably
Thanks for positive feedback.
Chris
-
And here's another option. If you want it to reset the component rotation and scale, edit the ruby file in a plain text editor (like notepad for example) and after the line:
if comp.typename == "Group" || comp.typename == "ComponentInstance"
add the two following lines:
t = Geom::Transformation.new comp.transformation = t
Chris
-
@unknownuser said:
It was a while that you have not create a new plug
Strangely , I taught similar
Thanks Chris
MALAISE
-
And this is why SU is the best, works fabulously, thank you!
-
Is there possible to make change on this script to only move to origin axes X and Y, not Z?
-
Edit the script and change the line
vector = point.vector_to [0,0,0]
to read
vector = point.vector_to [0,0,point.z]
It will then not change the Z -value of the translation... -
Thanks, it works well. But if I want to move base of object to zero on Z axes? Thanks anyway.
-
So having now got the idea - Edit the script and change the line
vector = point.vector_to [0,0,0]
to read
vector = point.vector_to [point.x,point.y,0]
It will then not change the X/Y values but will set the Z-value of the translation to zero...... -
Hello,
The "Center on Origin" script only works correctly when the drawing axes are at (0,0,0).
However, it is possible to move the drawing axes with Tool -> Axes to somewhere else
that is not (0,0,0).How can center a selection to the currently set origin, which may not be at (0,0,0) ?
Thanks.
-
Unfortunately, there is no access to the Origin of the moved Axes from Ruby.
-
Very cool!
I know this is old stuff already, but would it be complicated to move everything to center (eventually while keeping Z-height), including hidden geometry, section cuts and most of all the Camera views..?Would be very grateful
-
Thanks for this great plugin, that's exactly what I was looking for
-
@chris fullmer said:
And here's another option. If you want it to reset the component rotation and scale, edit the ruby file in a plain text editor (like notepad for example) and after the line:
if comp.typename == "Group" || comp.typename == "ComponentInstance"
add the two following lines:
t = Geom::Transformation.new comp.transformation = t
Chris
I'm having some difficulty using this plug in on nested components that were created with a copy/paste/scale = -1. I was hoping to try a few of the edits cited in this thread but the ruby is a .rbz; My editor tells me its been locked up and uneditable... is there another way to get to the source?
-
The .rbz is just a zip file. Rename it to .zip and then unzip it. Inside there are regular .rb files that you can edit for your own personal use.
-
Hi Chris,
I installed the new update but now get an error message.
Charly
Advertisement