• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ 30% Off | Artisan 2 on sale until April 30th Buy Now

[Plugin] Axes Tools

Scheduled Pinned Locked Moved Plugins
63 Posts 20 Posters 84.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    errror404
    last edited by 21 Dec 2010, 21:33

    Pretty cool plugin!!... If I could add anything, it would be a 4th option: (Front, Back, Center, or leave it unchanged)

    Lets say I'm working on a component like a window... and I modified the window to be twice as long in the red axis. I want to center the red axis, but I don't want to change the green axis (it has a cutting plane and it's not located either Front, Back, or Center).

    thanks!

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 21 Dec 2010, 21:49

      Another good idea! ❗ πŸ‘

      Thomas Thomassen β€” SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • D Offline
        dem
        last edited by 30 Jan 2011, 02:01

        Excuse me, how can I create a button with
        "cmd = UI::Command.new () {}", for this tool? πŸ’š

        1 Reply Last reply Reply Quote 0
        • T Offline
          thomthom
          last edited by 30 Jan 2011, 02:06

          @dem said:

          Excuse me, how can I create a button with
          "cmd = UI::Command.new () {}", for this tool? πŸ’š

          <span class="syntaxdefault"><br />cmd&nbsp;</span><span class="syntaxkeyword">=&nbsp;</span><span class="syntaxdefault">UI</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Command</span><span class="syntaxkeyword">.new(</span><span class="syntaxstring">'Set&nbsp;Insertion&nbsp;Point'</span><span class="syntaxkeyword">)&nbsp;{<br />&nbsp;&nbsp;</span><span class="syntaxdefault">self</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">set_insertion_point<br /></span><span class="syntaxkeyword">}<br />&nbsp;</span><span class="syntaxdefault"></span>
          

          Thomas Thomassen β€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • D Offline
            dem
            last edited by 30 Jan 2011, 02:13

            @thomthom said:

            <span class="syntaxdefault"><br />cmd </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> UI</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Command</span><span class="syntaxkeyword">.new(</span><span class="syntaxstring">'Set Insertion Point'</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">  self</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">set_insertion_point<br /></span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault"> </span>
            

            I just tried the same way, but did not work 😒

            <span class="syntaxdefault"><br />cmd </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> UI</span><span class="syntaxkeyword">;;</span><span class="syntaxdefault">Command</span><span class="syntaxkeyword">.new(</span><span class="syntaxstring">'Set Insertion Point'</span><span class="syntaxkeyword">)</span><span class="syntaxdefault"> </span><span class="syntaxkeyword">{<br /></span><span class="syntaxdefault">  self</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">set_insertion_point<br /></span><span class="syntaxkeyword">}<br /></span><span class="syntaxdefault">cmd</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">small_icon </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">"ICONS/axisC_sm.png"<br /></span><span class="syntaxdefault">cmd</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">large_icon </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">"ICONS/axisC_lg.png"<br /></span><span class="syntaxdefault">cmd</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">tooltip </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> </span><span class="syntaxstring">"Set Insertion Point"<br /></span><span class="syntaxdefault">toolbar </span><span class="syntaxkeyword">=</span><span class="syntaxdefault"> toolbar</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">add_item cmd<br /></span>
            

            Excuse me, but what I do wrong?

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 30 Jan 2011, 13:02

              Does the toolbar appear?

              Do you get any error messages?

              Did you put the code inside the TT::Plugins::AxesTools module? If not, then you must use TT::Plugins::AxesTools.set_insertion_point

              Thomas Thomassen β€” SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • D Offline
                dem
                last edited by 30 Jan 2011, 13:30

                Oh. Thanks!!! Very useful plugin, that saves a lot of time!

                1 Reply Last reply Reply Quote 0
                • S Offline
                  sdmitch
                  last edited by 28 Jun 2011, 18:53

                  ThomThom, I have been trying to redefine, from a plugin, the axes of a component instance that has been rotated and made unique to the default left,front,bottom location without any luck. This is an easy manual modification but seemingly impossible from code. Any suggestions would be greatly appreciated.

                  Nothing is worthless, it can always be used as a bad example.

                  http://sdmitch.blogspot.com/

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 28 Jun 2011, 22:27

                    @sdmitch said:

                    ThomThom, I have been trying to redefine, from a plugin, the axes of a component instance that has been rotated and made unique to the default left,front,bottom location without any luck. This is an easy manual modification but seemingly impossible from code. Any suggestions would be greatly appreciated.

                    This plugin won't do it??? πŸ˜•

                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdmitch
                      last edited by 29 Jun 2011, 00:41

                      @thomthom said:

                      This plugin wonΓ¦t do it??? πŸ˜•

                      I can't seem to come up with any combination that makes it work. I want to be able to copy and rotate a component around one or two axes then make it unique so, when I place it again, it maintains that orientation. Now when the the new component is selected for placement it returns to the orientation that it originally was. Using your Axis Tool doesn't change that no matter where I define the insertion point. Right clicking on the component and doing a Change Axes is the only thing that works but how do you code that?

                      Nothing is worthless, it can always be used as a bad example.

                      http://sdmitch.blogspot.com/

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        thomthom
                        last edited by 29 Jun 2011, 06:35

                        It's exactly what this plugin is suppose to be doing... ...but testing a simple cube now, and there seem to be a bug here...

                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          thomthom
                          last edited by 29 Jun 2011, 08:13

                          ...and when I try it again - everything works fine... πŸ˜•

                          got a sample model? because I cannot reproduce it again..

                          Thomas Thomassen β€” SketchUp Monkey & Coding addict
                          List of my plugins and link to the CookieWare fund

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sdmitch
                            last edited by 29 Jun 2011, 14:56

                            The attached model contains two not so "simple cubes". The one at the origin is the original cube. The one on the right is a copy which has been made unique and rotated 90 degrees. When the copy is selected, Change Axes show the insertion point of the copy at the back right corner as you would expect. Using your Axis Tool and choosing right,front,bottom does move the insertion point but the axes orientation is un-changed so, when it selected for placement, it appears un-rotated.


                            Insertion point and axes orientation

                            Nothing is worthless, it can always be used as a bad example.

                            http://sdmitch.blogspot.com/

                            1 Reply Last reply Reply Quote 0
                            • utilerU Offline
                              utiler
                              last edited by 21 Feb 2012, 07:51

                              Thom, I've got an idea to add.

                              see here:
                              http://forums.sketchucation.com/viewtopic.php?f=15&t=43404&p=387027#p387027

                              Would be nice to be able to context click on a group or component and reset the Axes orientation to global.....

                              I'd be interested to see if it is possible.

                              Cheers,

                              Andrew

                              purpose/expression/purpose/....

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                thomthom
                                last edited by 21 Feb 2012, 08:40

                                What would expected behavior for nested components be?

                                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                List of my plugins and link to the CookieWare fund

                                1 Reply Last reply Reply Quote 0
                                • utilerU Offline
                                  utiler
                                  last edited by 21 Feb 2012, 11:57

                                  Rest all I reckon..... πŸ‘

                                  purpose/expression/purpose/....

                                  1 Reply Last reply Reply Quote 0
                                  • utilerU Offline
                                    utiler
                                    last edited by 22 Feb 2012, 00:41

                                    @utiler said:

                                    Rest all I reckon..... πŸ‘

                                    'Re-set' all I meant to say.... 😳

                                    purpose/expression/purpose/....

                                    1 Reply Last reply Reply Quote 0
                                    • bac9-flclB Offline
                                      bac9-flcl
                                      last edited by 30 Jul 2012, 09:03

                                      This plugin is absolutely awesome, thanks a lot! πŸ˜„

                                      I'm exporting models to CryENGINE3, which is limited with FP16 vertex coordinate precision, so moving the pivot point to the center of a bounding box to utilize the whole range of available values on each axis is a very important thing to do. Your plugin just saved me tons of time otherwise wasted on doing this manually. πŸ˜„

                                      And yeah, the possibility to disable the centering for vertical axis (and using e.g bottom of the bounding box) is awesome too - especially for more or less flat models where I can sacrifice some excess precision in exchange for ease of object placement. Or also, it's very useful for small props, like furniture or natural clutter, which can be placed in hundreds - digging each object from the ground would have been quite bothersome). πŸ˜„

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        thomthom
                                        last edited by 30 Jul 2012, 09:11

                                        πŸ‘ πŸ˜„

                                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                        List of my plugins and link to the CookieWare fund

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          rv1974
                                          last edited by 30 Jul 2012, 09:26

                                          May I request 'add cpoint' feature at the axes origin?

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 3 / 4
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement