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

    [Plugin] Simple Scale Tool Handles v1.2 7-25-2011

    Scheduled Pinned Locked Moved Plugins
    49 Posts 19 Posters 37.2k Views 19 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.
    • K Offline
      kyyu
      last edited by

      Updated to v1.2, see 1st post. The menu item has always processed the selection, if it exsit. Now the toolbar icons do this, too. But there is an option to change it back to only processing all. See the description. Also, I darkened the icons.

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

        @kyyu said:

        @rv1974 said:

        Hi Kyyu!
        Could you please make a simple version of the script without any icons and dropdown options?
        Just a distillated simple scale ruby. Please!
        Thank you!

        You really want a one way ruby? copy/paste into ruby console or .rb file.

        UI.menu("Plugins").add_item("simple scale handles"){Sketchup.active_model.definitions.each{|e|e.behavior.no_scale_mask=88}}
        

        It's gettinng better. There's one last step. Now your simplified script assures that the next scale operation will be with simple handles, correct? What I'd like to get is simplified scale all together at once.
        Thank you so much

        1 Reply Last reply Reply Quote 0
        • halroachH Offline
          halroach
          last edited by

          @kyyu said:

          Updated to v1.2, see 1st post. The menu item has always processed the selection, if it exsit. Now the toolbar icons do this, too. But there is an option to change it back to only processing all. See the description. Also, I darkened the icons.

          The last update 1.2 works like expected. It was a bit confusing for me when the menu item was doing something different than what the toolbar was doing.
          By what it looks, basically what the plugin does is change the scale properties for each component, right?

          1. I think some people may confuse this tool as being a separate scale tool that scales only in the XYZ direction...
            but it is actually a tweak for each component to scale differently, with the original scale tool. I guess it is similar to using dynamic component scale attributes (as in the image attached)

          2. would this tweak have any effect on model performance? or file sizes!? When I was using dynamic component attributes for this exact same scaling idea, it used to make overall sketchup performance a bit laggy at times.

          3. Is it at all possible to have a separate scale tool that would do just this, without the need to change properties of each or all of the components, a tool that would work on simple un-grouped geometry as well?

          thanks!


          same thing using dynamic component attributes

          FlexTools - Super Quick Windows, Doors, Slats...

          1 Reply Last reply Reply Quote 0
          • halroachH Offline
            halroach
            last edited by

            In the latest version 1.2, there is a problem that the simple scale isn't constrained to only X Y Z, but also one more XY... see attached image.
            I used the toolbar to change the properties...


            bug

            FlexTools - Super Quick Windows, Doors, Slats...

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

              @unknownuser said:

              The last update 1.2 works like expected. It was a bit confusing for me when the menu item was doing something different than what the toolbar was doing.
              By what it looks, basically what the plugin does is change the scale properties for each component, right?

              Yes, the user is selecting or processing all components/groups. And I explained, in basically the 2nd sentence of the 1st post that a property of the comp/group was being modified. I get confused myself about other peoples plugins. It's just the nature of things, the wild west of plugins.

              @unknownuser said:

              1. I think some people may confuse this tool as being a separate scale tool that scales only in the XYZ direction...
                but it is actually a tweak for each component to scale differently, with the original scale tool. I guess it is similar to using dynamic component scale attributes (as in the image attached)

              2. would this tweak have any effect on model performance? or file sizes!? When I was using dynamic component attributes for this exact same scaling idea, it used to make overall sketchup performance a bit laggy at times.

              The properties in that picture look very familiar: http://code.google.com/apis/sketchup/docs/ourdoc/behavior.html#no_scale_mask=
              I am using those exact properties, from the SU ruby api. So maybe you will get the same limitations? Big models is kinda outside my knowledge zone. I'm still using an old computer, Pentium 4, but it's enough for my need. Just do small home project with SU.

              @unknownuser said:

              1. Is it at all possible to have a separate scale tool that would do just this, without the need to change properties of each or all of the components, a tool that would work on simple un-grouped geometry as well?

              Of course, anything is possible, but would you spend the time to do it? Probably not, usless it was very important to you. Even this small pugin, I probably spent an evenings time spread over a few days. And I'm no expert, just slowly learning.

              But I see that Fredo6 just put a similar, but real tool mod in his FredoScale plugin. Looks like he is responding to the same request I saw. I just happen to come across a solution and remembered the request. Check it out:
              http://forums.sketchucation.com/viewtopic.php?f=323&t=17948&start=600#p343978

              @unknownuser said:

              In the latest version 1.2, there is a problem that the simple scale isn't constrained to only X Y Z, but also one more XY... see attached image.
              I used the toolbar to change the properties...

              Yes, I have X,Y,Y and (X+Y). The request was for scaling sheet parts. So X+Y coupling is fine and probably wanted. I just removed all z coupling. If you want, just X,Y,Z; it's easy enough to change:
              Line#56 where it has "e.behavior.no_scale_mask=88" just change the "88" to "120".

              1 Reply Last reply Reply Quote 0
              • halroachH Offline
                halroach
                last edited by

                thank you for the long reply!

                @unknownuser said:

                Yes, I have X,Y,Y and (X+Y). The request was for scaling sheet parts. So X+Y coupling is fine and probably wanted. I just removed all z coupling. If you want, just X,Y,Z; it's easy enough to change:
                Line#56 where it has "e.behavior.no_scale_mask=88" just change the "88" to "120".

                That will definitely be of help! thanks of the pointers!

                FlexTools - Super Quick Windows, Doors, Slats...

                1 Reply Last reply Reply Quote 0
                • jolranJ Offline
                  jolran
                  last edited by

                  Nice icons Kyyu! Very useful plugin.

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

                    @jolran said:

                    Nice icons Kyyu! Very useful plugin.

                    Thanks, my 1st icons. I think the most time was spent, just making the icons. 😆

                    1 Reply Last reply Reply Quote 0
                    • jolranJ Offline
                      jolran
                      last edited by

                      @unknownuser said:

                      Thanks, my 1st icons. I think the most time was spent, just making the icons.

                      He he! Yes I know. It's difficult to make them look good after downscaling so much.
                      Anyway.. Good job 👍

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

                        i'm having a problem using this tool. when i click either of the two toolbars button, the default scaling handles remain. they never change to the simple scale tool 😕 what should i do?

                        Signature removed by SCF Admin

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

                          @rock1 said:

                          i'm having a problem using this tool. when i click either of the two toolbars button, the default scaling handles remain. they never change to the simple scale tool 😕 what should i do?

                          Do you have a group or component, in your drawing, for the plugin to modify? You can give it a try under the plugins menu, but no one else has reported a problem with the toolbar?

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

                            @kyyu said:

                            @rock1 said:

                            i'm having a problem using this tool. when i click either of the two toolbars button, the default scaling handles remain. they never change to the simple scale tool 😕 what should i do?

                            Do you have a group or component, in your drawing, for the plugin to modify? You can give it a try under the plugins menu, but no one else has reported a problem with the toolbar?

                            I did this for group, i even tried from the plugin drop down menu, i select the simple option but the default handles remain 😕

                            Signature removed by SCF Admin

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

                              Sounds like pilot error. After clicking on the toolbar icon, click on one of the scale handles and they'll change as set by the plugin. 😒

                              Etaoin Shrdlu

                              %

                              (THERE'S NO PLACE LIKE)

                              G28 X0.0 Y0.0 Z0.0

                              M30

                              %

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

                                @dave r said:

                                Sounds like pilot error. After clicking on the toolbar icon, click on one of the scale handles and they'll change as set by the plugin. 😒

                                i select a box [which is a group], press "s", then click the 1st button of toolbar. nothing happens

                                if i select the box, then click the button, it doesn't get pressed at all 😕

                                Signature removed by SCF Admin

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

                                  @rock1 said:

                                  i select a box [which is a group], press "s", then click the 1st button of toolbar. nothing happens

                                  Because the scale tool does not know to update it's handles drawing. You have to force it to redraw. Either by selecting a handle, like Dave R, suggested. Or by reselecting the group. Deselect by pressing [Esc]key or right clicking on an empty spot on the screen. And reselect the group.

                                  @rock1 said:

                                  if i select the box, then click the button, it doesn't get pressed at all 😕

                                  The button doesn't depress for selection. If there is nothing selected, then all active group/components are processed and the button is depressed as an indicator that every thing was processed.

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

                                    @rock1 said:

                                    @dave r said:

                                    Sounds like pilot error. After clicking on the toolbar icon, click on one of the scale handles and they'll change as set by the plugin. 😒

                                    i select a box [which is a group], press "s", then click the 1st button of toolbar. nothing happens

                                    if i select the box, then click the button, it doesn't get pressed at all 😕

                                    Too bad you didn't read what I wrote. 😒

                                    Thank you, Kyyu

                                    Etaoin Shrdlu

                                    %

                                    (THERE'S NO PLACE LIKE)

                                    G28 X0.0 Y0.0 Z0.0

                                    M30

                                    %

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

                                      Nice one kwok thank you! 👍
                                      Mark and Trish

                                      1 Reply Last reply Reply Quote 0
                                      • sicksickisckS Offline
                                        sicksickisck
                                        last edited by

                                        😐 don't work at all,it's just empty icons

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

                                          @sicksickisck said:

                                          😐 don't work at all,it's just empty icons

                                          Sounds like you didn't install it correctly. Most likely you didn't preserve the folder structure.

                                          Have a look at this utility plugin that will make it easier to install plugin correctly: http://forums.sketchucation.com/viewtopic.php?t=42315

                                          Also have a look at this tutorial on installing plugins: http://www.thomthom.net/thoughts/2012/01/installing-plugins-for-google-sketchup/

                                          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
                                            TBoy
                                            last edited by

                                            Is it possible to have simple scale handles as default behavior for scale tool ?

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

                                            Advertisement