sketchucation logo sketchucation
    • 登入
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Q JS ALIGN TOOLBAR

    已排程 已置頂 已鎖定 已移動 Plugins
    61 貼文 33 Posters 100.2k 瀏覽 33 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • CadFatherC 離線
      CadFather
      最後由 編輯

      Here is a tweaked version of Jan's Sandstrom (Pixero) script for aligning objects along the 3 main axis - it is useful for those pesky areas like lampshades or 3D text, or just when you feel lazy enough..

      it is mainly for groups (though it will align edges too) - also note that the script takes reference from the centre of the group bounding box and not necessarily the geometric one.

      i want to thank Jan for allowing me to tweak his script and come up with this toolbar version of it.

      the script doesn't really need a tutorial but it is in my to do list, together with other scripts which i will post on my website later on.

      cheers
      Max

      Q JS Align.PNG

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


      Q JS Align.zip

      1 條回覆 最後回覆 回覆 引用 0
      • B 離線
        blajnov
        最後由 編輯

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

        1 條回覆 最後回覆 回覆 引用 0
        • CadFatherC 離線
          CadFather
          最後由 編輯

          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 條回覆 最後回覆 回覆 引用 0
          • Bob JamesB 離線
            Bob James
            最後由 編輯

            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 條回覆 最後回覆 回覆 引用 0
            • L 離線
              leixing
              最後由 編輯

              wow ,very nice work! i like it .

              1 條回覆 最後回覆 回覆 引用 0
              • pilouP 離線
                pilou
                最後由 編輯

                Like this? 😉


                inthe fog.jpg

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

                1 條回覆 最後回覆 回覆 引用 0
                • thomthomT 離線
                  thomthom
                  最後由 編輯

                  @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 條回覆 最後回覆 回覆 引用 0
                  • CadFatherC 離線
                    CadFather
                    最後由 編輯

                    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 條回覆 最後回覆 回覆 引用 0
                    • D 離線
                      Daniel S
                      最後由 編輯

                      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 條回覆 最後回覆 回覆 引用 0
                      • CadFatherC 離線
                        CadFather
                        最後由 編輯

                        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 條回覆 最後回覆 回覆 引用 0
                        • Chris FullmerC 離線
                          Chris Fullmer
                          最後由 編輯

                          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 條回覆 最後回覆 回覆 引用 0
                          • thomthomT 離線
                            thomthom
                            最後由 編輯

                            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 條回覆 最後回覆 回覆 引用 0
                            • CadFatherC 離線
                              CadFather
                              最後由 編輯

                              @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 條回覆 最後回覆 回覆 引用 0
                              • Chris FullmerC 離線
                                Chris Fullmer
                                最後由 編輯

                                @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 條回覆 最後回覆 回覆 引用 0
                                • thomthomT 離線
                                  thomthom
                                  最後由 編輯

                                  thehe
                                  messing with your head! 😉 😄

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

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • I 離線
                                    ideas_arte
                                    最後由 編輯

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

                                    Thank you very much...!

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • Bob JamesB 離線
                                      Bob James
                                      最後由 編輯

                                      @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 條回覆 最後回覆 回覆 引用 0
                                      • CadFatherC 離線
                                        CadFather
                                        最後由 編輯

                                        thanks Bob - i hope someone with a mac will be able to fix this 😒

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • B 離線
                                          BTM
                                          最後由 編輯

                                          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 條回覆 最後回覆 回覆 引用 0
                                          • utilerU 離線
                                            utiler
                                            最後由 編輯

                                            Thanks Coen, good tip. Could have used it last week while trying to flatten some survey dwgs.... 👍

                                            purpose/expression/purpose/....

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement