sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

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

    Scheduled Pinned Locked Moved Plugins
    27 Posts 17 Posters 29.2k 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.
    • 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
                                • S Offline
                                  sahi
                                  last edited by

                                  Updated the plug-in in the first message

                                  1 Reply Last reply Reply Quote 0
                                  • designerbursaD Offline
                                    designerbursa
                                    last edited by

                                    alternative svg icon


                                    resize.zip

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TeamCVZ
                                      last edited by

                                      Should it work with SU19 ?

                                      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