sketchucation logo sketchucation
    • 登入
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.8b introduces important bugfixes for Fredo's Extensions Update

    [Plugin] Scale and Rotate Multiple (UPDATED Dec 22, 09)

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

      hi Chris
      I proposed an idea on the forum.
      viewtopic.php?f=180&t=22569
      If you have not seen her.
      I think your plugins, could adapt well to the idea

      Scale and Rotate Multiple

      interested? is possible?

      greetings

      1 條回覆 最後回覆 回覆 引用 0
      • majidM 離線
        majid
        最後由 編輯

        recently I saw this. thank you for generousity

        My inspiring A, B, Sketches book: https://sketchucation.com/shop/books/intermediate/2612-alphabet-inspired-sketches--inspiring-drills-for-architects--3d-artists-and-designers-

        1 條回覆 最後回覆 回覆 引用 0
        • Chris FullmerC 離線
          Chris Fullmer
          最後由 編輯

          I just got a report that this might not be working right in 7.1!

          So if you use it and it moves components all over th place, instead of just scaling them, please let me know. I need to look into it.

          But otherwise I hope you find it useful 😄

          Chris

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

          1 條回覆 最後回覆 回覆 引用 0
          • Chris FullmerC 離線
            Chris Fullmer
            最後由 編輯

            Can any Mac users verify if this script is working on SU 7.1? It appears to working great on Vista, SU 7.1 but I still have a report or two of it not working.

            Anyone have any example files where it is not working for them?

            Thanks

            Chris

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

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

              @chris fullmer said:

              Can any Mac users verify if this script is working on SU 7.1? It appears to working great on Vista, SU 7.1 but I still have a report or two of it not working.

              Anyone have any example files where it is not working for them?

              Thanks

              Chris

              SU 7.1M1, OSX10.4
              A´OK!

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

              1 條回覆 最後回覆 回覆 引用 0
              • Chris FullmerC 離線
                Chris Fullmer
                最後由 編輯

                Thanks Thom!

                I should mention what is not working for some, just in case you just verified it loaded.

                I have heard 2 or 3 reports of this plugin thoring components all over the place, instead of using their axes. It seems that for some, this plugin does not scale and rotate according to the specified axes.

                So if anyone still feels like testing further, awesome. Otherwise, I'll write a debugging version and give that to anyone who wants to test it out, see what is broken on their system.

                Thanks again,

                Chris

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

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

                  I just tried the random rotate and scale. That worked as expected. But if you have specific procedures that's reported to fail, then I can try that.

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

                  1 條回覆 最後回覆 回覆 引用 0
                  • PixeroP 離線
                    Pixero
                    最後由 編輯

                    Yeah, I've seen that two times recently when using axis.
                    When I choose component base everything was o.k. though. ❓

                    1 條回覆 最後回覆 回覆 引用 0
                    • Chris FullmerC 離線
                      Chris Fullmer
                      最後由 編輯

                      Has it been on all components? or is just on face-me perhaps?

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

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

                        I tried with groups, components and face-me components. Can't reproduce.

                        ...maybe it has to do with nesting..?

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

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

                          just noticed something when orbiting after random rotate and scale; face-me components float about all over the place.

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

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

                            that also occurs on PC.
                            See attached file for a sample of dancing Sang! 😆


                            dancing_sangs.skp

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

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

                              great. thanks.

                              1 條回覆 最後回覆 回覆 引用 0
                              • EdsonE 離線
                                Edson
                                最後由 編輯

                                @thomthom said:

                                just noticed something when orbiting after random rotate and scale; face-me components float about all over the place.

                                this is exactly what happens with me. as you orbit they scatter all over the place.

                                edson mahfuz, architect| porto alegre • brasil
                                http://www.mahfuz.arq.br

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

                                  @edson said:

                                  @thomthom said:

                                  just noticed something when orbiting after random rotate and scale; face-me components float about all over the place.

                                  this is exactly what happens with me. as you orbit they scatter all over the place.

                                  Chris has found this to be a bug in SU. He'd working on a workaround.

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

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • Chris FullmerC 離線
                                    Chris Fullmer
                                    最後由 編輯

                                    Yes, this was an interesting bug to track down. It includes a few steps to get around it, but I have it working. I just have not been able to find time to work it into this script yet. And when I release it I'll owe a few big "thank you's" to a bunch of helpful people out there.

                                    Chris

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

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

                                      Chrisssss! I used your plugin on a forest of faceme trees - quickly found myself in a mad frenzy of trees dancing ghostly around. 😕 😲

                                      Update? pretty pleeeease! 😄

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

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • TIGT 離線
                                        TIG Moderator
                                        最後由 編輯

                                        Chris
                                        My idea of making its faceme false doing the rotation then resetting its faceme back again should be easy to include ?

                                        TIG

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

                                          @tig said:

                                          Chris
                                          My idea of making its faceme false doing the rotation then resetting its faceme back again should be easy to include ?

                                          I just tried to use the Console to turn off then on:

                                          sel[0].definition.behavior.always_face_camera = false
                                          Scale and Rotate Multiple
                                          sel[0].definition.behavior.always_face_camera = true

                                          But still got the same problem. 😞

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

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • Chris FullmerC 離線
                                            Chris Fullmer
                                            最後由 編輯

                                            Hi Tig and Thom. Sorry I still haven't updated it. I've got the code all worked out, just not put into place. The issue is 2 fold - 2 different bugs at play. TIG your trick helped the part that faceme's components bounding boxes ( bounds.center ) no longer return the center of the component. The return center of entire range of motion. Which is not helpful. So I used your tip to make the faceme into a regular component, then grad the centerpoint and then I have the point to scale about. So it helps find the scale about point which is otherwise impossible since v7.1.

                                            The dancing and jumping is another bug. You can no longer use ANY of the uniform scaling transformations on faceme components. It sort of cheats, and just adjusts the 16th matrix element. So the 16th should always be 1, but if you use (which I did) a uniform scaling method, it will change that 16th element to act as an overall scaling factor, which freaks out faceme's in 7.1.

                                            So if you want fix it Thom, you would need to change the faceme scaling method. And I don't have the code in front of me, but it should scale by something like this:

                                            sf = (the scale factor, as a float)
                                            t = Geom::Transformation.new(sf,0,0,0,0,sf,0,0,0,0,sf,0,0,0,0,1)

                                            That should scale a component uniformly by aplying the scale over the entire matrix, and not just adjust the 16th element.

                                            Or I'll try to fix this later today (but it might be well after midnight in your neck of the woods Thom).

                                            Chris

                                            PS - I know very little about transformation matrices. So I apologise if I used incorrect terms or theories 😄

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

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

                                            Advertisement