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

[Plugin] Q JS ALIGN TOOLBAR

Scheduled Pinned Locked Moved Plugins
61 Posts 33 Posters 100.1k 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.
  • B Offline
    blajnov
    last edited by 29 Jun 2009, 12:05

    Is it possible to make sure that the alignment occurred on the selected object?

    1 Reply Last reply Reply Quote 0
    • C Offline
      CadFather
      last edited by 29 Jun 2009, 12:28

      i know what you mean, but i haven't been able to focus a selection as primary (the one that doesn't move)

      i plan more work on it (like geometric centre and spacing) but it may be beyond my coding (read tweaking) skills..

      1 Reply Last reply Reply Quote 0
      • B Offline
        Bob James
        last edited by 29 Jun 2009, 16:49

        Toolbar: Much appreciated!!

        i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

        1 Reply Last reply Reply Quote 0
        • L Offline
          leixing
          last edited by 30 Jun 2009, 01:47

          wow ,very nice work! i like it .

          1 Reply Last reply Reply Quote 0
          • P Offline
            pilou
            last edited by 30 Jun 2009, 12:53

            Like this? πŸ˜‰


            inthe fog.jpg

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

            1 Reply Last reply Reply Quote 0
            • T Offline
              thomthom
              last edited by 30 Jun 2009, 12:53

              @unknownuser said:

              Can you show me an example where the center of the Group's bounding box is dissimilar from the geometric one?

              bb_centre.png

              Unless the content of the group/component is a box the boundingbox centre will never be the geometric centre of the content.

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

              1 Reply Last reply Reply Quote 0
              • C Offline
                CadFather
                last edited by 30 Jun 2009, 12:59

                Hi Coen - yes try with a grouped triangle, the centre differs from the bounding box

                (thanks all for the feedback) πŸ‘

                EDIT: Coen you got 3 answers in one go - watch your servers.. πŸ˜‰

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Daniel S
                  last edited by 30 Jun 2009, 13:17

                  Thankyou Cadfather!!!

                  @unknownuser said:

                  Can you show me an example where the center of the Group's bounding box is dissimilar from the geometric one?

                  Quick example:
                  centro.gif
                  (centroid is the geometric center)

                  Daniel S

                  Edit: another example:
                  centro2.gif

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    CadFather
                    last edited by 30 Jun 2009, 13:36

                    there are two issues i think merit attention: centroid reference and spacing/distribution of objects

                    we could have icons or a small dialog, sort of this settings.PNG

                    actually i have looked at the centroid script by Alex Schreyer, but have not been able to implement it into the align script yet (it's going to take me some time)

                    in fact if any of the great masters can help, might be better! πŸ˜’ πŸ˜„

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Chris Fullmer
                      last edited by 30 Jun 2009, 16:33

                      EDIT: THis is wrong, I was looking at his shape wrong.

                      Thom I think on yours the bounding box center is the geometric center or centroid. Your face runs the diagonal of the bounding box, so placing a centerpoint on that face is just like placing a centerpoint in the middle of a diagonal line of the bounding box.

                      Chris

                      Lately you've been tan, suspicious for the winter.
                      All my Plugins I've written

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        thomthom
                        last edited by 30 Jun 2009, 19:59

                        The bounding box' centre point is not the centre of that extruded triangle.

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

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          CadFather
                          last edited by 30 Jun 2009, 20:33

                          @thomthom said:

                          The bounding box' centre point is not the centre of that extruded triangle.

                          Chris, it's the background colour throwing you off.. (must have been on purpose!)

                          1 Reply Last reply Reply Quote 0
                          • C Offline
                            Chris Fullmer
                            last edited by 30 Jun 2009, 20:48

                            @thomthom said:

                            The bounding box' centre point is not the centre of that extruded triangle.

                            OOooohhh! I get it. Yes, Cadfather is right, I could not see a 3d object there at all. I just saw the front, bright face.

                            So yes thom, you're right. That construction point is not the center of the geometry. 😳

                            Chris

                            Lately you've been tan, suspicious for the winter.
                            All my Plugins I've written

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              thomthom
                              last edited by 30 Jun 2009, 20:49

                              thehe
                              messing with your head! πŸ˜‰ πŸ˜„

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

                              1 Reply Last reply Reply Quote 0
                              • I Offline
                                ideas_arte
                                last edited by 1 Jul 2009, 06:40

                                http://www.addemoticons.com/emoticon/animated/AddEmoticons0423.gif
                                Nice...!

                                Thank you very much...!

                                1 Reply Last reply Reply Quote 0
                                • B Offline
                                  Bob James
                                  last edited by 10 Jul 2009, 17:41

                                  @cadfather said:

                                  (tested only on PC - unzip the contents to your plugins folder)

                                  Works on Mac except the toolbar doesn't "stick" - have to use View/Toolbars each time SU loads.

                                  i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

                                  1 Reply Last reply Reply Quote 0
                                  • C Offline
                                    CadFather
                                    last edited by 10 Jul 2009, 19:48

                                    thanks Bob - i hope someone with a mac will be able to fix this πŸ˜’

                                    1 Reply Last reply Reply Quote 0
                                    • B Offline
                                      BTM
                                      last edited by 10 Jul 2009, 21:04

                                      Just add this:

                                      case gp_quarr_jsalign_tb.get_last_state when 1 gp_quarr_jsalign_tb.restore when -1 gp_quarr_jsalign_tb.show end

                                      Picture 1.png

                                      1 Reply Last reply Reply Quote 0
                                      • utilerU Offline
                                        utiler
                                        last edited by 23 Aug 2009, 22:27

                                        Thanks Coen, good tip. Could have used it last week while trying to flatten some survey dwgs.... πŸ‘

                                        purpose/expression/purpose/....

                                        1 Reply Last reply Reply Quote 0
                                        • C Offline
                                          CadFather
                                          last edited by 27 Aug 2009, 19:39

                                          That's great Coen, thanks..and it is really fast as well

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

                                          Advertisement