• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

[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.
  • T Offline
    TIG Moderator
    last edited by 21 May 2009, 11:34

    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
    • T Offline
      thomthom
      last edited by 21 May 2009, 11:48

      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
      • P Offline
        pilou
        last edited by 25 May 2009, 00:55

        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
        • T Offline
          thomthom
          last edited by 25 May 2009, 06:19

          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
          • C Offline
            Chris Fullmer
            last edited by 25 May 2009, 06:56

            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
            • T Offline
              thomthom
              last edited by 25 May 2009, 07:31

              @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
              • T Offline
                thomthom
                last edited by 11 Jun 2009, 19:22

                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
                • T Offline
                  thomthom
                  last edited by 11 Jun 2009, 19:25

                  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
                  • F Offline
                    free agent
                    last edited by 11 Jun 2009, 23:40

                    hi 5

                    http:i167.photobucket.comalbumsu143FreeAgent84bug.gif

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      thomthom
                      last edited by 12 Jun 2009, 06:16

                      5!

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

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        free agent
                        last edited by 7 Jul 2009, 08:26

                        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
                        • T Offline
                          thomthom
                          last edited by 7 Jul 2009, 08:35

                          I'd think so. Just need to find a spare moment.

                          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
                            rocorona
                            last edited by 1 Jan 2011, 09:15

                            Can I suggest an update to this plugin? Wouldn't be more useful to have the "Move" function too added to Scale and Rotate? This can be done with 4 clicks instead of 3. First two to pick the "source" vector, and two more to say where to put the "target".
                            One can always reproduce the current behaviour, by clicking on the same point for the first and third click.
                            And, as a final enhancement, it would make a Copy, if the Ctrl key is pressed.

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              thomthom
                              last edited by 1 Jan 2011, 17:05

                              @rocorona said:

                              Can I suggest an update to this plugin? Wouldn't be more useful to have the "Move" function too added to Scale and Rotate? This can be done with 4 clicks instead of 3. First two to pick the "source" vector, and two more to say where to put the "target".
                              One can always reproduce the current behaviour, by clicking on the same point for the first and third click.
                              And, as a final enhancement, it would make a Copy, if the Ctrl key is pressed.

                              I've had the same thoughts - will add it to my To-Do list.

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

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                pilou
                                last edited by 22 Jun 2011, 11:46

                                And a random function of a selection? Rotate + Scale
                                Edit
                                In fact exist in a certain way by Chris Fullmer Scale Rotate Multiple 😎

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

                                1 Reply Last reply Reply Quote 0
                                • demD Offline
                                  dem
                                  last edited by 27 Feb 2014, 00:52

                                  Thanks! 👍
                                  it would be nice to have RotaStretch mode by pressing Alt)

                                  1 Reply Last reply Reply Quote 0
                                  • E Offline
                                    Einstein
                                    last edited by 7 Jan 2018, 19:24

                                    Thanks for it!

                                    I'd add "clone" (copy) feature to TODO list 😉 It would be even more useful.

                                    1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      Einstein
                                      last edited by 10 Mar 2018, 17:06

                                      Hi!

                                      It would be very useful to have ESC button to undo reference point selection. For example: I picked first refpoint but I want to change it without leaving the tool, then I press ESC and I can pick it again. The same with second and third refpoint.

                                      1 Reply Last reply Reply Quote 0
                                      • panixiaP Offline
                                        panixia
                                        last edited by 24 Jan 2020, 11:24

                                        I just discovered this gem.. It would be also nicer with a toolbar button!

                                        Edit: nevermind, I managed to do it myself, using the toolbar editor plugin. 😄

                                        RotaScaleButton.JPG

                                        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