by thomthom » Wed Sep 01, 2010 7:37 pm
OverviewTwo methods I wrote to reset the axis of components to their bounding box' centre. Useful for them pesky DWG imports where the insertion point of the blocks are really far away, causing the components to jitter. AccessPlugins > Axes ToolsFeatures- Set Insertion Point
tt_axis.png Requirements- SketchUp 7 or newer - ( Other versions untested )
- TT_Lib2 (v2.2.0)
Download tt_axes.rb Footprint <Sketchup>/Plugins/ +- 
tt_axes.rb 
Please, register (free) to access all the attachments on the forums.
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Ben Ritter » Wed Sep 01, 2010 7:40 pm
Thomas, you are so generous. 
-
Ben Ritter
-
- Posts: 351
- Joined: Wed Nov 14, 2007 4:55 pm
- Location: Malta, Illinois
by Ben Ritter » Wed Sep 01, 2010 7:42 pm
What happened to SU8 all of a sudden. Left in the dust.
-
Ben Ritter
-
- Posts: 351
- Joined: Wed Nov 14, 2007 4:55 pm
- Location: Malta, Illinois
by thomthom » Wed Sep 01, 2010 8:21 pm
Ben Ritter wrote:What happened to SU8 all of a sudden. Left in the dust.
Just given a steroid boost. 
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Pilou » Thu Sep 02, 2010 1:35 am
Guiness book record for number of plugins by day is crushed! 
-

Pilou
- Top SketchUcator
-
- Posts: 10035
- Joined: Wed Jan 23, 2008 10:33 pm
- Operating system: Windows
- SketchUp version: 6
- License type: Free
- SketchUp use: hobby
- Level of SketchUp: Advanced
-
by rv1974 » Mon Sep 06, 2010 9:53 am
Hi Thom! Could your make your genious tool even more genious?: 1. Axes to the component's bottom center; 2. Add CPoint at pivot (there's no snap to pivot in SU unfortunatly)
-
rv1974
-
- Posts: 515
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by thomthom » Mon Sep 06, 2010 9:57 am
rv1974 wrote:1. Axes to the component's bottom center;
Yup, on the todo list to be able to choose which part of the boundingbox. rv1974 wrote:2. Add CPoint at pivot (there's no snap to pivot in SU unfortunatly)
Can do that, yes. But I'll add it to Guide Tools.
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by rv1974 » Mon Sep 06, 2010 10:31 am
1.Fine but could bottom center be default value? Or at least make script to remember last preference. 2.Wouldn't it be smarter not split into 2 commands? P.S. Not concerned to the topic: You made some nice ruby 'groups to components'. But After the procedure it deselects the new born component. Could it keep the selection on?
-
rv1974
-
- Posts: 515
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by thomthom » Mon Sep 06, 2010 10:46 am
rv1974 wrote:1.Fine but could bottom center be default value? Or at least make script to remember last preference.
It'd remember the last used setting. rv1974 wrote:2.Wouldn't it be smarter not split into 2 commands?
It'd not be between center or bottom center, it's be between any corner, and center of each of the bounding box sides. So it'd be a lot more options than just two. rv1974 wrote:You made some nice ruby 'groups to components'. But After the procedure it deselects the new born component. Could it keep the selection on? viewtopic.php?f=323&t=29462 ? Yea - easy enough.
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by rv1974 » Mon Sep 06, 2010 11:13 am
rv1974 wrote:2.Wouldn't it be smarter not split into 2 commands?
It'd not be between center or bottom center, it's be between any corner, and center of each of the bounding box sides. So it'd be a lot more options than just two.[/quote] ----- ----- I'm afraid I don't unerstand you. Anyhow what I mean is moving pivot to bottom center + placing cpoint to the same bottom center within one ruby (command) would be better.
-
rv1974
-
- Posts: 515
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by thomthom » Mon Sep 06, 2010 11:19 am
Some may not want to add a cpoint and some may not want to adjust the axis. Keep them separated and people can choose.
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by rv1974 » Mon Sep 06, 2010 2:07 pm
You decide (though I see a bunch of rubies that do insert here and there cpoints without too much''people" protest). The main thing for me that cpoint at pivot would be a part of given component.
-
rv1974
-
- Posts: 515
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by thomthom » Mon Sep 06, 2010 2:16 pm
Ah - I can see uses for inside and outside. Will make a note of that.
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by thomthom » Mon Sep 06, 2010 8:25 pm
Added CPoint at Insertion Point to Guide Tools: viewtopic.php?f=323&t=30506
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by thomthom » Mon Sep 06, 2010 9:38 pm
Version 1.1.0- Requires TT_Lib2 (v2.2.0)
- Replaced the old menus with Set Insertion Point
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by rv1974 » Tue Sep 07, 2010 8:16 am
I wish you were SU product manager it'd be entirely different world.
-
rv1974
-
- Posts: 515
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by rv1974 » Tue Sep 07, 2010 10:34 am
One more thing: Could this script stick to the current model axes not absolute world?
-
rv1974
-
- Posts: 515
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by thomthom » Tue Sep 07, 2010 10:40 am
rv1974 wrote:One more thing: Could this script stick to the current model axes not absolute world?
? It doesn't rotate the axis, it simply moves the origin of the components - the insertion point. Though, it could be made to also rotate the axis to match the current model axis.
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by rv1974 » Tue Sep 07, 2010 11:18 am
thomthom wrote: Though, it could be made to also rotate the axis to match the current model axis.
That's exactly what I meant
-
rv1974
-
- Posts: 515
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by diegog321 » Fri Sep 17, 2010 4:09 pm
thank you thom
This plugin saved my life about five minutes ago!
Diego
-
diegog321
-
- Posts: 13
- Joined: Thu Feb 25, 2010 9:00 pm
- Location: Venezuela
- Name: diego
by daniel266 » Sat Nov 06, 2010 5:45 am
OHH my GOD !! GEnius i have a dwg file that moves all along the place and i need to explode to make it stop this just solved everything!! SO much THX!
-
daniel266
-
- Posts: 10
- Joined: Fri May 29, 2009 7:45 pm
- Location: Bogota- Colombia
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: architecture
- Level of SketchUp: Intermediate
-
by Ruturaj » Mon Nov 08, 2010 5:12 pm
Hello sir, This plugin is very good & handful ..... but when i was applying following Settings : X (Red) : Right y (Green): Back z (Blue): Top selected any group or component its work but when i was applying again it on another group or component, it will not reset to the default settings ....? I was changing default MODULE - Code: Select all
### MODULE VARIABLES ### -------------------------------------------------
# Preference @settings = TT::Settings.new('Axes editor tool') @settings[:x, 'Left'] @settings[:y, 'Front'] @settings[:z, 'Bottom']
How to reset ......? Thank you, Ruturaj
Thanks, RuturaJ
-
Ruturaj
-
- Posts: 49
- Joined: Mon Feb 16, 2009 1:32 pm
- Location: Kolhapur, India
- Name: Ruturaj Patil
-
by thomthom » Mon Nov 08, 2010 6:08 pm
I remembers the last values you used. Just select what you want from the drop down menus. The "defaults" you refer to is only defaults for the very first time the plugin runs.
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Ruturaj » Mon Nov 08, 2010 7:37 pm
oh......... ok..... Thanks
Thanks, RuturaJ
-
Ruturaj
-
- Posts: 49
- Joined: Mon Feb 16, 2009 1:32 pm
- Location: Kolhapur, India
- Name: Ruturaj Patil
-
by utiler » Mon Nov 29, 2010 6:04 am
Hey Thomas, love this little gem.....! So simple yet so powerful! I have a question. See the attached images of a plan view: Axis01.png And a perspective view: Axis02.png Say I want to set my axis to the rear of the couch, centered and at the bottom. When I followed your axis tool to achieve this I have to input these settings: Axis03.png Instead of 'X' back, 'Y' centre', 'Z' bottom. It appears that the options in the dialogue box should be reversed. Don't you think that the 'X' options should be Front/Centre/Right and 'Y' options should be Left/Centre/Right instead of the other way around? It would just make sense according to how you view a model after all from an axis green is naturally north/south or vertical on the page or screen and red is east /west or horizontal...... Love your work!!  PS: Skippy attached FYI.
Please, register (free) to access all the attachments on the forums. purpose/expression/purpose/....
-

utiler
- Top SketchUcator
-
- Posts: 1928
- Joined: Wed Nov 14, 2007 11:35 am
- Location: Queensland, Australia
- Name: utiler
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by thomthom » Mon Nov 29, 2010 8:00 am
utiler: Front/Back, Left/Right, Top/Bottom is determined by the components internal axis - not the model axis. note that this plugin does not change the orientation of the component axis, but just the axis origin.
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by utiler » Tue Nov 30, 2010 12:34 am
thomthom wrote:utiler: Front/Back, Left/Right, Top/Bottom is determined by the components internal axis - not the model axis. note that this plugin does not change the orientation of the component axis, but just the axis origin.
Sure, Thomas but whether the internal axis is the same as the model axis the 'X' is still horizontal and so any alignment is either north [front] or south [back].... I just don't see how you can nominate left or right of a red axis unless the red axis is vertically aligned; which it isn't....
purpose/expression/purpose/....
-

utiler
- Top SketchUcator
-
- Posts: 1928
- Joined: Wed Nov 14, 2007 11:35 am
- Location: Queensland, Australia
- Name: utiler
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by thomthom » Tue Nov 30, 2010 8:59 am
The way I view axis: Axis.png The way that SketchUp, and most other 3d modelling apps, display the workspace with axis in default scenes. utiler wrote:I just don't see how you can nominate left or right of a red axis unless the red axis is vertically aligned; which it isn't....
How can something vertical be considered left/right?
Please, register (free) to access all the attachments on the forums.
-

thomthom
- Global Moderator
-
- Posts: 17568
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by utiler » Wed Dec 01, 2010 12:11 am
I see. I get it. I guess I was thinking in orthogonal [plan view] rather than the 3D environment. In plan the green axis would be vertical and hence anything to the right of it would be 'right and visa versa..... I won't argue your understanding of SU or any other program.... I'm happy with your explanation. cheers, 
purpose/expression/purpose/....
-

utiler
- Top SketchUcator
-
- Posts: 1928
- Joined: Wed Nov 14, 2007 11:35 am
- Location: Queensland, Australia
- Name: utiler
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Jim » Tue Dec 21, 2010 5:08 am
It might be a nice option to be able to set the axis in relation to a sub-component. Like a arm, which might have a upper_arm, lower_arm, and shoulder_joint sub-components. Select the Arm, then move it's insertion point to the center of the shoulder, or pivot point. 
-
Jim
- Global Moderator
-
- Posts: 4126
- Joined: Mon Nov 12, 2007 10:13 pm
- Location: NEOH
- Name: Jim
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
Return to Plugins
|