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

[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.
  • R Offline
    rock1
    last edited by 15 Aug 2011, 00:39

    @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
    • D Offline
      Dave R
      last edited by 15 Aug 2011, 01:01

      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 15 Aug 2011, 13:38

        @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 15 Aug 2011, 15:10

          @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
          • D Offline
            Dave R
            last edited by 15 Aug 2011, 18:10

            @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 1 Sept 2011, 14:40

              Nice one kwok thank you! πŸ‘
              Mark and Trish

              1 Reply Last reply Reply Quote 0
              • S Offline
                sicksickisck
                last edited by 6 Jul 2012, 10:17

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

                1 Reply Last reply Reply Quote 0
                • T Offline
                  thomthom
                  last edited by 6 Jul 2012, 10:25

                  @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 11 Feb 2016, 15:45

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

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      Dave R
                      last edited by 11 Feb 2016, 15:53

                      @tboy said:

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

                      Set up a keyboard shortcut to activate this tool instead of the default Scale tool. S is the default keyboard shortcut for the native Scale tool. Change it to activate this tool instead.

                      Etaoin Shrdlu

                      %

                      (THERE'S NO PLACE LIKE)

                      G28 X0.0 Y0.0 Z0.0

                      M30

                      %

                      1 Reply Last reply Reply Quote 0
                      • fredo6F Offline
                        fredo6
                        last edited by 11 Feb 2016, 16:09

                        Just for info, FredoScale does this reduction of handle automatically depending on the 'apparent' dimensions along the axes. If you manipulate a thin plate, you'll get one handle, but if you zoom, you will end up by getting 3 as in the native Scale Tool.

                        FredoScale Auto Handle.gif

                        Fredo

                        1 Reply Last reply Reply Quote 0
                        • JQLJ Offline
                          JQL
                          last edited by 11 Feb 2016, 16:30

                          Fredo I had never noticed that. As I'm used to being afraid of Scale tool handles I thought it was better zooming in with yours too... Mindless zooming in and out! Your tools seem to surprise me at every corner with such elaborate features!

                          www.casca.pt
                          Visit us on facebook!

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TBoy
                            last edited by 11 Feb 2016, 16:39

                            @fredo6
                            FredoScale "Box stretching" is most useful in planar editing I think. Default scale tool may modify size in view direction (invisible in 2d view), that's why I wish to replace the default scale tool handles.
                            Your work is amazing fredo6...

                            What I really miss in Skethup is some kind of property window or something - showing and modifying real x, y, z size of selected object/s (or/and any kind of selection) in users units. I wander why it is not done yet. I know I can enter exact values with scale tool, but this is NOT a natural way for size editing.
                            You can do it fredo6.

                            1 Reply Last reply Reply Quote 0
                            • fredo6F Offline
                              fredo6
                              last edited by 11 Feb 2016, 21:54

                              @tboy said:

                              What I really miss in Skethup is some kind of property window or something - showing and modifying real x, y, z size of selected object/s (or/and any kind of selection) in users units. I wander why it is not done yet. I know I can enter exact values with scale tool, but this is NOT a natural way for size editing.
                              You can do it fredo6.

                              I think you can press TAB when the mouse is over a handle and you'll get a dialog box to enter the size.

                              FredoScale dialog box for size.png

                              Fredo

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                TBoy
                                last edited by 12 Feb 2016, 07:39

                                @fredo6 said:

                                I think you can press TAB when the mouse is over a handle...
                                Fredo

                                Yes, something like this but...
                                too much clicks to obtain a simple size change.
                                I started a new topic here:
                                http://sketchucation.com/forums/viewtopic.php?f=10%26amp;t=64170
                                Please see it.

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TBoy
                                  last edited by 28 Apr 2017, 08:39

                                  ky, where can I find explanation of those numeric equivalents of the commands you use in this and other scripts?
                                  Thanks for Simple scale handles, it is always ON with "120 mask" in my files.

                                  1 Reply Last reply Reply Quote 0
                                  • CadFatherC Offline
                                    CadFather
                                    last edited by 28 Apr 2017, 16:56

                                    use this in the console to find out the integers (also below are some you can use)

                                    @s=Sketchup.active_model.selection;@d=@m.definitions;@s[0].definition.behavior.no_scale_mask = 127  ; Sketchup.send_action('selectScaleTool;')
                                    

                                    ALL VISIBLE = 000000 = 0
                                    NO RED = 0000001 = 1
                                    NO GREEN = 0000010 = 2
                                    NO BLUE = 0000100 = 4
                                    NO FREE DEFORM = 0111000 = 56
                                    CORNERS ONLY = 0111111 = 63
                                    NO HANDLES = 1111111 = 127
                                    ONLY AXES = 1110000 = 120

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TBoy
                                      last edited by 28 Apr 2017, 18:26

                                      Thank you CadFather. So answer of my question is: anyone can extract these and others using console? Any additional explanations for integers? I'm just curious.
                                      (Error: #<NoMethodError: undefined method `definitions' for nil:NilClass>)

                                      Please, tell me what to do to activate 'Simple scale handles' automatically for every file permanently?

                                      P.S. My next question will be: Why size of objects is so difficult to extract and show in some kind of info panel, this is strange, too strange.

                                      1 Reply Last reply Reply Quote 0
                                      • CadFatherC Offline
                                        CadFather
                                        last edited by 28 Apr 2017, 21:41

                                        .

                                        ops, sorry few copy errors : try this code

                                        @m=Sketchup.active_model;@s=@m.selection;@d=@m.definitions;@s[0].definition.behavior.no_scale_mask = 4 ; Sketchup.send_action('selectScaleTool;')
                                        

                                        you can find this in the sketchup API:

                                        http://ruby.sketchup.com/Sketchup/Behavior.html#no_scale_mask=-instance_method

                                        i don't find it very clear, but more or less: you have 7 numbers (bits). each representing a pair of handles. when the bit is 0, the particular handle pair is visible. when the bit is 1 the handle pair is hidden.

                                        @unknownuser said:

                                        Bit0: disable scale along red (X),
                                        Bit1: disable scale along green (Y),
                                        Bit2: disable scale along blue (Z),
                                        Bit3: disable scale in red/blue plane (X+Z),
                                        Bit4: disable scale in green/blue plane (Y+Z),
                                        Bit5: disable scale in red/green plane (X+Y),
                                        Bit6: disable scale uniform (from corners) (XYZ).

                                        take 1111000 as an example. the bits from left to right are bit6, bit5, bit4, bit3, bit2, bit1, bit0. in this example, bits 6, 5, 4,and 3 are all hidden. the only visible ones are the blue, green and red: bits 2, 1 and 0.

                                        this 'combination' is given in the form of an integer. if you take the example above, the 1111000 number is the 'binary' conversion of 120.

                                        here's a place where you can do a conversion:
                                        http://acc6.its.brooklyn.cuny.edu/%7Egurwitz/core5/nav2tool.html

                                        so, you can decide your combination of ones and zeroes (your seven bits)
                                        use the converter to get the corresponding integer
                                        use the ruby code above to test the integer.

                                        hope it makes sense

                                        unfortunately you cannot activate it permanently - you can use the script from this thread (and change the handle numbers you prefer). and yes, there is a lot of 'strange' about sketchup - but we do love it anyway! 😎

                                        .

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

                                        Advertisement