[REQ] Reset Scale of Selected
-
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
-
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
-
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. ! -
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. -
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. -
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.
-
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
-
In french, it is "Réinitialier l'échelle"
I think more and more these days
-
Maybe you should post a new plugin as a new topic [Plugin] for a bettter search
-
When it will be finished...
Advertisement