sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

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

    scheduled pinned locked moved Plugins
    27 Posts 17 Posters 28.8k Views 17 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • 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

      one-reply-to-this-post last-reply-time 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

        one-reply-to-this-post last-reply-time 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

          one-reply-to-this-post last-reply-time 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

            one-reply-to-this-post last-reply-time reply quote 0
            • CadFatherC Offline
              CadFather
              last edited by

              ..growing into a nice little ruby.

              one-reply-to-this-post last-reply-time reply quote 0
              • M Offline
                marcosrodrigues
                last edited by

                Simple and very useful. Thank you!

                | menos é mais

                one-reply-to-this-post last-reply-time 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

                  one-reply-to-this-post last-reply-time 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

                    one-reply-to-this-post last-reply-time 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

                      one-reply-to-this-post last-reply-time 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?

                        one-reply-to-this-post last-reply-time reply quote 0
                        • Z Offline
                          Zacchia
                          last edited by

                          I like it. Thanks!

                          one-reply-to-this-post last-reply-time reply quote 0
                          • chialiang168C Offline
                            chialiang168
                            last edited by

                            尺寸不正確
                            Size is not correct

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

                            one-reply-to-this-post last-reply-time reply quote 0
                            • cottyC Offline
                              cotty
                              last edited by

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

                              my SketchUp gallery

                              one-reply-to-this-post last-reply-time 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.

                                one-reply-to-this-post last-reply-time reply quote 0
                                • S Offline
                                  sahi
                                  last edited by

                                  Updated the plug-in in the first message

                                  one-reply-to-this-post last-reply-time reply quote 0
                                  • designerbursaD Offline
                                    designerbursa
                                    last edited by

                                    alternative svg icon


                                    resize.zip

                                    one-reply-to-this-post last-reply-time reply quote 0
                                    • T Offline
                                      TeamCVZ
                                      last edited by

                                      Should it work with SU19 ?

                                      one-reply-to-this-post last-reply-time 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