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

    [Plugin] Scaling to_cm (UPDATED 15/02/2016)

    Scheduled Pinned Locked Moved Plugins
    27 Posts 17 Posters 28.6k Views 17 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.
    • urgenU Offline
      urgen
      last edited by

      ...it is "resize tool" more.. by axis... Useful idea,SAHI! 😄

      http://img98.imageshack.us/img98/7785/55555aaoz1.jpg

      --pupil forever...------

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

        hi sahi thanks for this ruby! 😍

        is there anyway to change it to meters?

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

          @stanmarsh said:

          is there anyway to change it to meters?

          meters
          mashtab.zip

          1 Reply Last reply Reply Quote 0
          • Didier BurD Offline
            Didier Bur
            last edited by

            Hi,
            This doesn't work here: it gives weird results, out of range, entities are moved elsewhere. If entities are not grouped at start, there are grouped at the end.
            Am I missing something ???

            Before/After a scale of 2:scale.jpg

            DB

            1 Reply Last reply Reply Quote 0
            • N Offline
              N Lindenthal
              last edited by

              On Mac I did not see the scaling tool palette. Is it Menu > Plugins > Scale?

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

                changed the names in a script
                Menu > Plugins > Resizer

                Dom_15.jpg


                mashtab_1.zip

                1 Reply Last reply Reply Quote 0
                • Didier BurD Offline
                  Didier Bur
                  last edited by

                  Hi,
                  Dialog is ambiguous: "on all of axes" is not a target size but adds entered size to actual size. The final size would be better IMHO ?
                  Why choosing the bounds center as the center of transformation ?
                  I suggest not to use "to_cm" or "to_m" in the code, but to use only Length type variables. Thus you will suit everyone's unit, no matter what it is.
                  Useful script, though.

                  DB

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

                    @didier bur said:

                    Hi,
                    Dialog is ambiguous: "on all of axes" is not a target size but adds entered size to actual size. The final size would be better IMHO ?
                    Why choosing the bounds center as the center of transformation ?
                    I suggest not to use "to_cm" or "to_m" in the code, but to use only Length type variables. Thus you will suit everyone's unit, no matter what it is.

                    "on all of axes" ---How to name???
                    corrected all of other as you specified


                    mashtab_2.zip

                    1 Reply Last reply Reply Quote 0
                    • Didier BurD Offline
                      Didier Bur
                      last edited by

                      Correct me if I'm wrong, but the resize operation works only for faces in XY,XZ and YZ planes (red,green,blue) ?
                      "On all of axes" -> "In every direction" ? English speaking people please help !
                      Another enhancement is to encapsulate in an operation for one step undo:

                      
                      def mashtabirovanie_create
                      Sketchup.active_model.start_operation "Resize"
                      ss=Sketchup.active_model.selection
                      ...
                      ...
                      Sketchup.active_model.select_tool(nil)
                      Sketchup.active_model.commit_operation
                      end
                      

                      DB

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

                        @didier bur said:

                        
                        > def mashtabirovanie_create
                        > Sketchup.active_model.start_operation "Resize"
                        > ss=Sketchup.active_model.selection
                        > ...
                        > ...
                        > Sketchup.active_model.select_tool(nil)
                        > Sketchup.active_model.commit_operation
                        > end
                        

                        Thank you! Corrected a code.
                        Added an icon.
                        mashtab_3.zip

                        1 Reply Last reply Reply Quote 0
                        • CadFatherC Offline
                          CadFather
                          last edited by

                          ..growing into a nice little ruby.

                          1 Reply Last reply Reply Quote 0
                          • M Offline
                            marcosrodrigues
                            last edited by

                            Simple and very useful. Thank you!

                            | menos é mais

                            1 Reply Last reply Reply Quote 0
                            • I Offline
                              ilay7k
                              last edited by

                              @unknownuser said:

                              Correct me if I'm wrong, but the resize operation works only for faces in XY,XZ and YZ planes (red,green,blue) ?
                              "On all of axes" -> "In every direction" ? English speaking people please help !

                              Equal "In every direction" is global settings for object of selection(world scaling system in most graphic packages...in attached pic, like cinema4d)
                              or about directions of red,green,blue, Didier, you are right/something like object system/


                              as.jpg

                              1 Reply Last reply Reply Quote 0
                              • F Offline
                                Fletch
                                last edited by

                                I would replace the "on all of axes" line with a checkbox called 'lock aspect ratio' as shown in attached. or just change the name to 'uniform scale'.


                                lockaspectratio.jpg

                                Fletch
                                Twilight Render Cross-platform Plugin for SketchUp on PC or Mac

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

                                  @fletch said:

                                  I would replace the "on all of axes" line with a checkbox called 'lock aspect ratio' as shown in attached. or just change the name to 'uniform scale'.

                                  dom_3.jpg
                                  mashtab_4.zip

                                  1 Reply Last reply Reply Quote 0
                                  • unclebimU Offline
                                    unclebim
                                    last edited by

                                    I don't get what should I input in the Lock aspect ratio box in order to get the selection scaled proportionally to exact dimension input in one axis?

                                    1 Reply Last reply Reply Quote 0
                                    • Z Offline
                                      Zacchia
                                      last edited by

                                      I like it. Thanks!

                                      1 Reply Last reply Reply Quote 0
                                      • chialiang168C Offline
                                        chialiang168
                                        last edited by

                                        尺寸不正確
                                        Size is not correct

                                        https://dl.dropboxusercontent.com/u/108539326/星野築網頁/004-應用教室/002-sketchup教室/插件應用/線組轉組件/問題插件.png

                                        1 Reply Last reply Reply Quote 0
                                        • cottyC Offline
                                          cotty
                                          last edited by

                                          Perhaps your bounding box has a different orientation than the box itself?

                                          my SketchUp gallery

                                          1 Reply Last reply Reply Quote 0
                                          • jujuJ Offline
                                            juju
                                            last edited by

                                            @cotty said:

                                            Perhaps your bounding box has a different orientation than the box itself?

                                            that would no sense if the plugin measures the bounding box instead of the geometry

                                            Save the Earth, it's the only planet with chocolate.

                                            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