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

    [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.
    • 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