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)
Chris 1450
Please, register (free) to access all the attachments on the forums.
Last edited by Chris Fullmer on Thu May 23, 2013 10:53 pm, edited 1 time in total.
Pilou wrote: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
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
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...
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......
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..?