sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    [REQ] Reset Scale of Selected

    Scheduled Pinned Locked Moved Plugins
    16 Posts 6 Posters 2.1k Views 6 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.
    • plot-parisP Offline
      plot-paris
      last edited by

      when reading this thread, I came across something that is missing in SketchUp, but probably can be solved with not too much effort (at least I hope 😄 )

      if you want to scale the position of (I mean the spacing between) components, an easy way is to select them all and scale them, then right click them and choose "reset scale" to restore the proportions of the components. like this the spacing has been scaled, but not the shape of the components themselves.

      only there is a tiny problem: you can't reset the scale of several components/groups simultaneously; meaning that you have to click every single entity seperately to reset the scale, which can be very tedious.

      therefore I would like to ask if it is possible to write a script that shows the "reset scale" context command, even when several components/groups are selected and performs the reset scale process for every one of them.

      http://img74.imageshack.us/img74/2752/scalewl8.jpg

      have a nice weekend,

      Jakob

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        I've never even noticed that menu item! 😮

        Gai...

        1 Reply Last reply Reply Quote 0
        • J Offline
          Jon
          last edited by

          @gaieus said:

          I've never even noticed that menu item! 😮

          +1 😳

          Jon
          KT Team member

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

            Hi plot-paris !

            The problem is we have to re-write the native script to do what you want.

            But it's possible !
            Let me see what I can do...

            Frenglish at its best !
            My scripts

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

              Thanks and keep us up to speed...

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

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

                +1...

                Frenglish at its best !
                My scripts

                1 Reply Last reply Reply Quote 0
                • plot-parisP Offline
                  plot-paris
                  last edited by

                  marvellous, Matthieu.

                  works like a charm. this is one of those basic scripts - I mean, one of those functions that fit in perfectly and after using it for the first time you can't believe, that SketchUp didn't do it beforehand...

                  thanks a lot 👍

                  1 Reply Last reply Reply Quote 0
                  • plot-parisP Offline
                    plot-paris
                    last edited by

                    dear Matthieu,

                    just arrived in the office and played arround with the script again. and I found out a little bug.

                    the rescaling of multiple components simultanously works perfectly fine. but as soon as there are more than one groups in the selection, only one group at a time is rescaled (and deselected after the process). when you executed the command until only one group among the components is left, all the selected elements are rescaled at a time.
                    so the simultanous rescaling of multiple groups does not work.

                    oh, and could you do me a favour?

                    firstly: could you rename the function to "Reset Scale" to match the native SU entry in the context menu
                    and secondly: only show the command in the context menue, when more than one entities are selected (because then the native SU command vanishes anyway, so that we don't have two entities with the same name in the menu)?

                    that would be awesome.

                    cheers,

                    Jakob

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

                      Ok I will see for this bug. I don't understand all, because of my poor english 😉 I will test.
                      But, sorry, I can't replace the native function in the context menu... Or I don't know the method !
                      The second favour is easy to make. !

                      Frenglish at its best !
                      My scripts

                      1 Reply Last reply Reply Quote 0
                      • plot-parisP Offline
                        plot-paris
                        last edited by

                        thanks for the quick answer, Matthieu.

                        I am afraid, I didn't make myself clear enough. I don't want to replace the native SketchUp command. if you do me my second favour (only showing the command, when more than one group/component is selected) all works automatically. SketchUp hides the "Reset Scale" command by itself, if more than one object is selected.
                        that means, that you only have to name your command the same way ("Reset Selected"). and if more than one group/component is in the selection, your command will show up and SketchUp's will not. 😍

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

                          Oooh ! Ok !

                          @unknownuser said:

                          I am afraid, I didn't make myself clear enough.

                          No no no !! I don't understand engish clearly enough.... 😳

                          I've understood what you want ! In English the command is "Reset scale", not ?
                          I edit the post containing script.

                          Frenglish at its best !
                          My scripts

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

                            Here is an early script. It does not work with "always face camera" component definitions.
                            It works the same way that native tool. The tool appears in the menu only if it finds at least one component scaled.
                            I will edit this post when I will find how to reinit scale of "always face camera" component definitions.

                            EDIT : Modified script with plot-paris reports.


                            V2

                            Frenglish at its best !
                            My scripts

                            1 Reply Last reply Reply Quote 0
                            • plot-parisP Offline
                              plot-paris
                              last edited by

                              ah, I see. so it is "scale_reinit." in french?

                              you know, that is why I switched to the engish version of SketchUp quite a while ago, in order to speak a common language - only to discover that all my fellow students in Germany didn't understand what I meant, when I told them anything about SketchUp 😄

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

                                In french, it is "Réinitialier l'échelle"

                                I think more and more these days 😄

                                Frenglish at its best !
                                My scripts

                                1 Reply Last reply Reply Quote 0
                                • BurkhardB Offline
                                  Burkhard
                                  last edited by

                                  Maybe you should post a new plugin as a new topic [Plugin] for a bettter search 😉

                                  [http://www.ia-plus.de(http://www.ia-plus.de)]

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

                                    When it will be finished...

                                    Frenglish at its best !
                                    My scripts

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

                                    Advertisement