[Plugin] Axes Tools

[Plugin] Axes Tools

Postby thomthom » Wed Sep 01, 2010 7:37 pm

Overview
Two 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.

Access
Plugins > Axes Tools

Features
  • Set Insertion Point
    tt_axis.png

Requirements
  • SketchUp 7 or newer - ( Other versions untested )
  • TT_Lib2 (v2.2.0)

Download



Footprint
<Sketchup>/Plugins/
+-
tt_axes.rb

0
Last edited by thomthom on Sat Jan 18, 2014 12:54 pm, edited 1 time in total.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby Ben Ritter » Wed Sep 01, 2010 7:40 pm

Thomas, you are so generous. :enlight:
0

Ben Ritter 
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby Ben Ritter » Wed Sep 01, 2010 7:42 pm

What happened to SU8 all of a sudden. Left in the dust.
0

Ben Ritter 
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby 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. ;)
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby pilou » Thu Sep 02, 2010 1:35 am

Guiness book record for number of plugins by day is crushed! :D
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby 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)
0

rv1974 
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby 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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby 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?
0

rv1974 
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby 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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby 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.
0

rv1974 
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby 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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby 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.
0

rv1974 
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby thomthom » Mon Sep 06, 2010 2:16 pm

Ah - I can see uses for inside and outside.
Will make a note of that.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.0.0) — 01 September 2010

Postby thomthom » Mon Sep 06, 2010 8:25 pm

Added CPoint at Insertion Point to Guide Tools: viewtopic.php?f=323&t=30506
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby rv1974 » Tue Sep 07, 2010 8:16 am

I wish you were SU product manager it'd be entirely different world.
0

rv1974 
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby rv1974 » Tue Sep 07, 2010 10:34 am

One more thing:
Could this script stick to the current model axes not absolute world?
0

rv1974 
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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
0

rv1974 
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby diegog321 » Fri Sep 17, 2010 4:09 pm

thank you thom

This plugin saved my life about five minutes ago!

Diego
0

diegog321 
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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!
0

daniel266 
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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
0
Thanks,
RuturaJ

Ruturaj 
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby Ruturaj » Mon Nov 08, 2010 7:37 pm

oh......... ok..... :thumb:

Thanks
0
Thanks,
RuturaJ

Ruturaj 
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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!! :berserk:

PS: Skippy attached FYI.
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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....
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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,

:thumb:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [Plugin] Axes Tools (1.1.0) — 06 September 2010

Postby 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.

0
Hi

Jim 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: Debora Macedo, Geoff, Google Bot, ljus, ngoctung0211, userid7 and 12 guests

Visit our sponsors: