• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

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

Scheduled Pinned Locked Moved Plugins
123 Posts 51 Posters 181.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.
  • P Offline
    Pixero
    last edited by 14 Mar 2009, 09:05

    Big thanks.
    πŸ‘
    After initial test I dont think I expressed what I wanted very well. Could be that english is not my native language or that I was tired. πŸ˜‰
    Anyway. What I would like is another option: the center of each components bounding box at the bounding box min (in Z).
    Many Groups or components dont have the axis at the center (if you're lazy like me)
    So that option would also be great.

    1 Reply Last reply Reply Quote 0
    • P Offline
      pilou
      last edited by 14 Mar 2009, 11:57

      @unknownuser said:

      (if you're lazy like me)

      Me too πŸ˜„
      So yes cool suggestion! β˜€
      Maybe not change the axis but yes take the middle of the Box z mini πŸ˜‰

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

      1 Reply Last reply Reply Quote 0
      • C Offline
        Chris Fullmer
        last edited by 14 Mar 2009, 14:27

        Sure, that should be easy enough to put in place. There are quite a few good bounding box control options built in, so it should not be too hard to find the center of the "bottom" of the bounding box. Hopefully it will work even after the component is rotated on its head. I would imagine that in that scenario it would still be preferable to use the same point that would be used if the component were not on its head, right? So the point should be the same on the component, no matter what the orientation of the component is?

        Thanks for the feedback and positive comments. I'll see what I can do. Its early morning here right now and I'll be gone much of the day at a St.Patricks Day (US Holiday) parade in San Francisco. When I get home this afternoon I'll get back to work πŸ˜„

        Chris

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

        1 Reply Last reply Reply Quote 0
        • B Offline
          bagatelo
          last edited by 14 Mar 2009, 14:49

          Ei Chris, thank you for the manuscript, I liked a lot.
          But... maybe you can improve the manuscript for increasing a function of rotate objects randomly.
          This can be very good tool to work with 3D plants or similar.

          Thanks anyway.

          While the cat's away, the mice will play

          1 Reply Last reply Reply Quote 0
          • C Offline
            coulteri
            last edited by 19 Mar 2009, 09:11

            Thanks a lot! ThatΒ΄s just it, IΒ΄ve requested here: http://www.sketchucation.com/forums/scf/viewtopic.php?f=15&t=17328
            πŸ˜„

            1 Reply Last reply Reply Quote 0
            • B Offline
              Ben Ritter
              last edited by 19 Mar 2009, 14:09

              Chris, thanks again for your generosity.

              1 Reply Last reply Reply Quote 0
              • C Offline
                Chris Fullmer
                last edited by 19 Mar 2009, 15:17

                @pixero said:

                Big thanks.
                πŸ‘
                After initial test I dont think I expressed what I wanted very well. Could be that english is not my native language or that I was tired. πŸ˜‰
                Anyway. What I would like is another option: the center of each components bounding box at the bounding box min (in Z).
                Many Groups or components dont have the axis at the center (if you're lazy like me)
                So that option would also be great.

                Don't think I've forgotten about your request Jan. I have a working version that does what you asked for. But it was remarkably more difficult to code that I had expected due to some faceme component issues. But I think I've got it worked out. There are just some bugs that I need to work out. But otherwise, its almost ready. As soon as I get some to put into it, I'll get the next version released.

                Glad others are finding it useful, thanks for commenting!

                Chris

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

                1 Reply Last reply Reply Quote 0
                • P Offline
                  Pixero
                  last edited by 19 Mar 2009, 16:25

                  Good to hear. I was about to ask about your progress.
                  What about rotation?

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    dylan
                    last edited by 20 Mar 2009, 08:08

                    I missed this one, thanks Chris.

                    I agree a random rotate in with it would be excellent, but it is easy to request these things when you are not the one creating them!

                    http://dmdarchitecture.co.uk/

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Chris Fullmer
                      last edited by 23 Mar 2009, 04:19

                      All right, wishes granted! I just updated this script and it now has the "Component Base" scale point option as suggested by Jan. Sorry it took so long to implement. I kept hitting little speedbumps along the road with that feature. I think it is working quite well now.

                      I've also added rotation. It rotates on the same base point as the scaling.

                      I also updated the video in the first post to explain the new features. Here's a full feature list for the version 2.0 update:

                      • Fixed a bug where it didn't let you scale items more than once using Axis. Should work over and over now.
                      • Added "Component Base" support for those of us who don't set our component axes. This uses the bottom center of the component.
                      • Added much more reliable FaceMe component support (I hope).
                      • Added Rotation capability. Uniform and random with user specified min/max values.

                      I tried to test it thoroughly, but its possible there are still bugs. Let me know (as I'm sure you will) if you find something,

                      Chris

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

                      1 Reply Last reply Reply Quote 0
                      • C Offline
                        Chris Fullmer
                        last edited by 23 Mar 2009, 04:23

                        I forgot to mention that I changed the filename (sorry). It was clf_scale_multiple.rb. That should be deleted. And then install the new one which is clf_scale_rotate_multiple.rb

                        Chris

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

                        1 Reply Last reply Reply Quote 0
                        • X Offline
                          xrok1
                          last edited by 23 Mar 2009, 04:34

                          KUDOs, we are all very fortunate to have you here. πŸ‘

                          β€œThere are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                          http://www.Twilightrender.com try it!

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            Pixero
                            last edited by 23 Mar 2009, 07:21

                            Thank you SOOO much!

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              dylan
                              last edited by 23 Mar 2009, 08:02

                              Thanks Chris, your hard work is appreciated πŸ‘

                              http://dmdarchitecture.co.uk/

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                pilou
                                last edited by 23 Mar 2009, 08:06

                                Multiple & rotate πŸ‘


                                scalemul.jpg

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

                                1 Reply Last reply Reply Quote 0
                                • E Offline
                                  Ecuadorian
                                  last edited by 2 Apr 2009, 05:58

                                  Thank you, Christopher!
                                  You already have free scripts that are better than some commercial ones.

                                  -Miguel Lescano
                                  Subscribe to my house plans YouTube channel! (30K+ subs)

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    pilou
                                    last edited by 8 Apr 2009, 12:05

                                    Does it possible to have the scale and the rotation not randomized but "growing" one by one?

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

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      Chris Fullmer
                                      last edited by 8 Apr 2009, 15:34

                                      The problem with implementing that functionality is that SketchUp does not order the components you select the way you select them. So even if you select them one by one and hit the "grow" command, it might jump around in the process, and scale them out of order, rendering it useless.

                                      Its possible to do for sure, but you have to make an assumption of growing them in the order they lie on the x axis or something. Then it would be possible to get them to grow in order. Or if the script placed them, it could keep track of them in order easily too. But I already know some of the math here starts getting me into trouble. I can see some of the shrinking spirals and sin waves you produce. That stuff just hurts my head πŸ˜„

                                      Chris

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

                                      1 Reply Last reply Reply Quote 0
                                      • P Offline
                                        pilou
                                        last edited by 8 Apr 2009, 15:55

                                        When you have shown a video with a line of trees we are waiting the line of the tree growing in order! πŸ˜‰
                                        But alas there was not πŸ’š

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

                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          troyhome
                                          last edited by 9 Apr 2009, 23:35

                                          amazing stuff! thanks so much!

                                          IOviz.com
                                          SU Pro 2024 PC

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

                                          Advertisement