sketchucation logo sketchucation
    • Login
    โ„น๏ธ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] RotaScale

    Scheduled Pinned Locked Moved Plugins
    39 Posts 14 Posters 29.4k Views 14 Watching
    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.
    • thomthomT Offline
      thomthom
      last edited by thomthom

      By request: http://www.sketchucation.com/forums/scf/viewtopic.php?f=180%26amp;t=19130

      This is just a rough version to get it out there. I got some other projects I need to attend to before I polish this one off.

      Usage:

      • Select everything you want to rotate-scale
      • Tools->RotaScale
      • Pick point of origin
      • Pick a second reference point
      • Pick a third reference point that will determine the rotation and scaling

      RotaScale.png

      Currently I performs a 3D uniform scaling. I'll look into 2D and 1D scaling later. (If anyone cares to give me pointers to how to do this I'd be happy.)

      Changelog

      
      # CHANGELOG
      # 0.1.0b - 19.05.2009
      #		 * Rotate and Scale.
      #
      # 0.1.1b - 20.05.2009
      #		 * Fixed a bug that occured when there's no rotation.
      #
      # 0.2.0b - 20.05.2009
      #		 * Added CTRL modifier to disable scaling.
      #
      # 0.3.0b - 20.05.2009
      #		 * Added cursors.
      #		 * Minor bugfix.
      #
      # 0.3.1b - 21.05.2009
      #		 * Added some extra methods to the Float class which the script rely on.
      #
      # 0.3.2b - 11.06.2009
      #		 * Normalized the Scale transformation - VfSU has problems if this isn't done it appears.
      #
      # 0.3.3b - 11.06.2009
      #		 * Corrected a potential bug.
      
      

      Todo:

      • 2D & 1D Scaling
      • Cleaner UI
      • Toolbar button
      • VCB input

      Link Preview Image
      SketchUp Plugins | PluginStore | SketchUcation

      SketchUp Plugin and Extension Store by SketchUcation provides free downloads of hundreds of SketchUp extensions and plugins

      favicon

      (sketchucation.com)


      Cookieware.png

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

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Great Thom! I'll check it out,

        Chris

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

        1 Reply Last reply Reply Quote 0
        • A Offline
          AcesHigh
          last edited by

          is this something I cant do by using first the rotation tool and then the scale tool?

          1 Reply Last reply Reply Quote 0
          • utilerU Offline
            utiler
            last edited by

            Following with great interest!!!!!!

            purpose/expression/purpose/....

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              @aceshigh said:

              is this something I cant do by using first the rotation tool and then the scale tool?

              You can, but the request was a tool to do it in one operation.

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

              1 Reply Last reply Reply Quote 0
              • S Offline
                silver_shadow
                last edited by

                Great work!!!
                Now we dont have to work out a scale factor if we want to re size an object or model.

                it does work in some cases, don't know why


                weird.skp

                1 Reply Last reply Reply Quote 0
                • free agentF Offline
                  free agent
                  last edited by

                  wow thom thanks for working on this i really appreciate it!!

                  @aceshigh said:

                  is this something I cant do by using first the rotation tool and then the scale tool?

                  its way more than that, the point is also to control the point a group will scale from, rather than just the centre or the corners, it makes lining/scaling reference material up to a model (or vise versa) really quick, so it squashes rotate scale and move into one.

                  thom just looked at the ruby, i works perfect, better than what i had asked for actually, i frikken love it ๐Ÿ˜ i cant tell you how long ive wanted this, thank you.

                  oops first problem ๐Ÿ˜„... it seems you HAVE to rotate, if the first line is on an axis then it wont let u place the second point along the same axis

                  http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    @unknownuser said:

                    oops first problem ๐Ÿ˜„... it seems you HAVE to rotate, if the first line is on an axis then it wont let u place the second point along the same axis

                    Yea, I expected there to be issues. I didn't test it much. I uploaded a quick update. Think it should take care of that problem.

                    @silver_shadow said:

                    it does work in some cases, don't know why

                    Can you explain further to what you're doing? I can't reproduce any problems.

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

                    1 Reply Last reply Reply Quote 0
                    • pilouP Offline
                      pilou
                      last edited by

                      Damned good! ๐Ÿ˜Ž (works in V6 ๐Ÿ˜‰


                      rot_scale.jpg

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

                      1 Reply Last reply Reply Quote 0
                      • free agentF Offline
                        free agent
                        last edited by

                        beautiful, thank you, now it works great, i dont see a need for improvement ๐Ÿ˜„

                        http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          @unknownuser said:

                          works in V6

                          Thanks for checking that. ๐Ÿ˜„ ๐Ÿ‘

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

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            rv1974
                            last edited by

                            Hi Thom
                            When I point the 3rd point with (let's say) cntrl key pressed the script should't change original scale. Could you add this feature? It would be nice imo.
                            Thanks

                            1 Reply Last reply Reply Quote 0
                            • pilouP Offline
                              pilou
                              last edited by

                              Maybe a suggestion ๐Ÿ˜‰
                              Scale is XYZ, maybe useful to have also choice X,Y only! ๐Ÿ˜„
                              ๐Ÿ˜ณ written in the todo list ๐Ÿ˜ณ

                              ๐Ÿ˜ฎ Seems there are Splat bug when Undo v6 ! (but not repetitive)

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

                              1 Reply Last reply Reply Quote 0
                              • thomthomT Offline
                                thomthom
                                last edited by

                                @rv1974 said:

                                Hi Thom
                                When I point the 3rd point with (let's say) cntrl key pressed the script should't change original scale. Could you add this feature? It would be nice imo.
                                Thanks

                                Yup. That can be done.

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

                                1 Reply Last reply Reply Quote 0
                                • pilouP Offline
                                  pilou
                                  last edited by

                                  You can yet make this after the rotate scale with the same tool ๐Ÿ˜‰
                                  3 click more and have a resize as you want ๐Ÿ˜‰
                                  here half size wanted ๐Ÿ’š
                                  bug splat don't come back in the v6...curious ๐Ÿ˜ฒ


                                  cliks.jpg

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

                                  1 Reply Last reply Reply Quote 0
                                  • thomthomT Offline
                                    thomthom
                                    last edited by

                                    @unknownuser said:

                                    bug splat don't come back in the v6...curious ๐Ÿ˜ฒ

                                    Let me know if it comes back.

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

                                    1 Reply Last reply Reply Quote 0
                                    • thomthomT Offline
                                      thomthom
                                      last edited by

                                      @rv1974 said:

                                      Hi Thom
                                      When I point the 3rd point with (let's say) cntrl key pressed the script should't change original scale. Could you add this feature? It would be nice imo.
                                      Thanks

                                      It is done. ๐Ÿ˜‰

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

                                      1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        kjc
                                        last edited by

                                        Hi, im sure this plugin will make things much easier, thanks!
                                        I think it would be even more if pressing "ctrl" button would cause "RotaScaleCopy", the way it works in typical rotation and move tools.

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by

                                          Thanks for a great idea and an already very polished tool...
                                          A minor problem - there are error messages in my Ruby console relating to the

                                          float.round_to()
                                          

                                          method.
                                          This is not built in to Ruby - the nearest is

                                          float.round
                                          

                                          , I assume you have a round_to.rb auto-loading... perhaps you should include the method code inside your script, I'm sure others will be getting the error ? Here's the code I used to fix it on my PC...Float-round_toEtc.rb - it also includes some other methods like float.floor_to etc...

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • thomthomT Offline
                                            thomthom
                                            last edited by

                                            I thought it was a ruby method. I googled ruby and rounding and I found some references to float_to which I just tried, and it worked. I guess it's a plugin I have installed which added that method.

                                            Thanks for bringing that to my attention TIG.
                                            Though, if I implement this method, might I not risk causing conflict with other script that also implements this method? I suppose if they act identical it might not be a problem..
                                            ...this is why I don't like extending base classes...

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

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

                                            Advertisement