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.
    • 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
                      • TIGT Offline
                        TIG Moderator
                        last edited by

                        I expect it'd be an identical function anyway - I'd change the base class in this case, as it's a pretty safe bet.

                        You could always call your own version float.round_to_TT [or another weird name] that no one else will use AND then find+replace .round_up with .round_to_TT ? OR you can invent a safe and simple internal def something like:

                        def round_to(float,x)
                          return((float*10**x).round.to_f/10**x)
                        end
                        

                        typical usage would then be...

                        view.draw_text(screen_xy, "Angle; #{round_to(angle.radians,1)ยฐ - Scale; #{round_to(scale,3)}")
                        
                        

                        ...

                        TIG

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

                          Updated the plugin in regard to TIG report. Thanks TIG.

                          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

                            The no Scale on the Z axis will be released?

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

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

                              Not sure. I don't fully understand the API on transformations. Need to figure out how first.
                              I'm currently working on a couple of other plugin projects, this was just a quick distraction. ๐Ÿ˜‰

                              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

                                t = Geom::Transformation.scaling point, xscale, yscale, zscale

                                just use 1.0 as the zscale value and it will be good to go!

                                Chris

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

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

                                  @chris fullmer said:

                                  t = Geom::Transformation.scaling point, xscale, yscale, zscale

                                  just use 1.0 as the zscale value and it will be good to go!

                                  Chris

                                  If I do that, it works for points that are picked planar to the model X and Y. But if I pick a point in the model Z axis, things are still being scaled only in the X and Y. Maybe that's what people expect?
                                  IMO that not what I'd expect from this plugin. I expect that if I pick two reference lines in the Z axis, things will get scaled in that direction.

                                  ...I suppose that the scaling transformation would have to be transformed to be local to the reference lines?
                                  That's what I'm not sure how to do. Getting the plane of the two reference lines (what happens when they are co-linear) and crossing it with the scaling transformation?

                                  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

                                    Minor update to address a problem where V-Ray for Sketchup would not render RotaScaled groups/components correctly.

                                    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

                                      Spotted a potential bug. Corrected.

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

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

                                        hi 5

                                        http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

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

                                          5!

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

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

                                            hey thom thom, looking at this script i see uve put standard rotate, as a extra when holding control u get standard rotate, any way we could get linear scaling when holding alt?

                                            http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

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

                                            Advertisement