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

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

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

                  No worries. I'm home now - and only have one day left before I take Christmas holiday.

                  Though, in my tests for uniform scaling of a faceme component 2x, the 16th turned into 0.5 and 13-15 also halved their values.

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

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

                    Woohoo! Thanks to lots of persistence by others asking me nicely to get this one fixed, and thanks to finding the problems by Thom and Edson, and some great solutions by TIG, Jeff99, and others - I think I can finally say that this script is updated and working with SU 7.1!

                    Well, hopefully. Please test it when you get a chance. I tried every combination of faceme and regular component scaling I could think of.

                    v2.5 - SU 7.1 compatibility fix

                    • Fixed scaling so that Face Me components don't freak out like they have been doing since SU 7.1 was introduced. Big Thanks to Edson and Thom for helping figure out what was breaking.
                    • Cleaned up some code - a big chunk thanks to a tip from TIG!

                    So if you have this script installed already, go back to the first post in this thread, and re-download. Then overwrite the existing file in your plugins folder. Thanks, and I hope this works now!

                    Chris

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

                    1 條回覆 最後回覆 回覆 引用 0
                    • plot-parisP 離線
                      plot-paris
                      最後由 編輯

                      brilliant! another Christmas Present! thanks a lot, Chris 😍

                      1 條回覆 最後回覆 回覆 引用 0
                      • N 離線
                        nektares
                        最後由 編輯

                        Wow thanks man, you are very creative with your scripts, they are very useful and easy to use. Thanks!

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

                          Ah! Finally I can adjust the size of my forest without it flying away! 😄

                          oh - one last request? Make it remember the values used last?

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

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

                            chris,

                            a big THANKS for fixing this bug! this plugin is used by me so much that it feels like recovering from a broken leg. i just tested it and everything seems to be back to normal. i'll let you know in case there is any odd behaviour as i use it more.

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

                            1 條回覆 最後回覆 回覆 引用 0
                            • plot-parisP 離線
                              plot-paris
                              最後由 編輯

                              @thomthom said:

                              one last request? Make it remember the values used last?

                              👍

                              1 條回覆 最後回覆 回覆 引用 0
                              • J 離線
                                j40
                                最後由 編輯

                                Great plugin! saved me so much tree rotation. Thanks Chris!

                                @plot-paris said:

                                @thomthom said:

                                one last request? Make it remember the values used last?

                                👍

                                👍

                                Top3D Studio

                                1 條回覆 最後回覆 回覆 引用 0
                                • C 離線
                                  Crevard
                                  最後由 編輯

                                  thank youuuuuuuuuuuuuu !!!!

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

                                    Hey Chris - great plugin. I was thinking it would be useful to add space between components before rotate.

                                    For example on this stone wall

                                    http://stormvisions.com/sketchup/srm1.jpg

                                    your tool did a great job of jumbling the stones but turn more than a little and they intersect their neighbor. In this case it would be useful to add a 'gap.'

                                    I'm sure there is probably another plugin that does just this, and this test project is easy enough to move by hand, but figured I'd suggest it anyway.

                                    Burt
                                    Stormvisions

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • L 離線
                                      Lersince1991
                                      最後由 編輯

                                      Amazing thanks a lot! Brilliant plug in, just made the landscape look so much better with random trees 😄

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

                                        Cool, glad it helped!

                                        @Bupaje - not sure I'll be incorporating that into the plugin soon. This really is only made to modify components in place. It would be hard to figure out how to "add spacing" since spacing in that sense is a linear movement.

                                        However, I also think you could do what you wanted with the tool in its current state. Select the blocks and do a uniform scale only on the x axis. That will effectively add a space between the blocks. Then do it again and add some random rotation. See if that is about the same effect,

                                        Chris

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

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

                                          Excellent tool, I can see a ton of uses for it. Great idea!

                                          SketchUp plugin marketplace: http://extendsketchup.com/

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

                                            Thanks Chris. will give it a try when I get home tonight.

                                            EDIT: tried this during my lunch break and works. Scaled the bricks, then hiit reset scale and that left the spacing. Thanks.

                                            Burt
                                            Stormvisions

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

                                            Advertisement