by kyyu » Thu Jul 21, 2011 10:40 pm
By request, a plugin to make it easier to use the scale tool, on thin sheet parts. Component/group definitions have a property that hides the handles. When the scale tool is used on a modified component/group, the drag handles are reduces from the normal 26 to only 10. Simple scale tool handles.png Newest is version 1.2v1.0 (7-21-2011) initial version v1.1 (7-23-2011) added Toolbar v1.2 (7-25-2011) Toolbar now processes selection, with option to only process all. Permission to use, copy, modify, and distribute this software for any purpose and without fee is hereby granted, provided this notice appears in any copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Author: kyyu (7-25-2011) v1.2
Description: This plugin makes it easier to use the scale tool, on thin sheet parts. When the scale tool is used on a modified component/group, the drag handles are reduces from the normal 26 to only 10. Tested on SU8, and also seems to work with SU7.
Activated from (Plugins menu "[ky] Simple Scale Handles") or (Toolbar). If nothing is selected, than all active groups/components are processed. Toolbar icons are depressed, as a visual indicator when all comp/groups are proccessed. Depressed icons can still be clicked, for example to process a selection. There is an option below, for the toolbar to ignore selection.
Options: There are 3 vaiables at the beginning of the script, whos value can be changed to customize the plugin. [menu = true] -load "Plugins Menu item" [toolbar = true] -load Toolbar [@toolbar_all = false] -if true, Toolbar will ignore selection, and only process all active comp/groups.
Tip: You need to have the z axis, of group/component, aligned with the thickness of the sheet.
simple scale handles_v1.2.zip
Please, register (free) to access all the attachments on the forums.
Last edited by kyyu on Mon Jul 25, 2011 6:17 am, edited 2 times in total.
-
kyyu
-
- Posts: 150
- Joined: Mon Jan 25, 2010 12:32 pm
- Location: Maryland, USA
- Name: Kwok Yu
by rv1974 » Fri Jul 22, 2011 5:48 am
Oh I'm so tired with the default one. Huge thank you!!!
-
rv1974
-
- Posts: 511
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by Krisidious » Fri Jul 22, 2011 6:00 am
are you saying this flattens stuff?
-

Krisidious
-
- Posts: 3151
- Joined: Mon Oct 22, 2007 1:52 pm
- Location: Springfield, Missouri. USA
- Name: Krisidious
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by dereeei » Fri Jul 22, 2011 6:35 am
Simple and Awesome. some things should be by default in SU
-
dereeei
-
- Posts: 564
- Joined: Tue Nov 16, 2010 1:48 pm
- Name: derei
by Ken » Fri Jul 22, 2011 10:58 am
This is nice plugin and needed by me since I work in large size 1/4" thick steel plate. I have added a icon and now trying to make the selection of the icon a toggle, Simple to Default and back.
Thanks for your work
Ken
Government rushes to help the irresponsible and does little for the responsible.
-

Ken
- Premium Member

-
- Posts: 702
- Joined: Thu Nov 15, 2007 1:38 pm
- Location: Fort Mill, SC
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
by TIG » Fri Jul 22, 2011 12:22 pm
A very simple yet very clever new tool. Which shows us that there are still many new or alternative ideas that can be realized without thousands of lines of code... 
TIG
-

TIG
- Global Moderator
-
- Posts: 13919
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by jolran » Fri Jul 22, 2011 12:27 pm
Great tool Kyyu! Thanks.
-

jolran
-
- Posts: 635
- Joined: Sun Oct 26, 2008 9:23 pm
- Location: Sweden
- Name: Joel G
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
by thomthom » Fri Jul 22, 2011 12:47 pm
Might want to wrap that up on a start/commit operation so it can be undone in one go.
-

thomthom
- Global Moderator
-
- Posts: 17545
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Ben Ritter » Fri Jul 22, 2011 1:49 pm
Thank you very much.
-
Ben Ritter
-
- Posts: 351
- Joined: Wed Nov 14, 2007 4:55 pm
- Location: Malta, Illinois
by kyyu » Fri Jul 22, 2011 10:18 pm
Krisidious wrote:are you saying this flattens stuff?
No, it changes the apperance of the skechup native scale tool. The right part in the image shows the change.
-
kyyu
-
- Posts: 150
- Joined: Mon Jan 25, 2010 12:32 pm
- Location: Maryland, USA
- Name: Kwok Yu
by kyyu » Fri Jul 22, 2011 10:27 pm
thomthom wrote:Might want to wrap that up on a start/commit operation so it can be undone in one go.
I had the start/commit operation in there originally, but no undo was created? So I removed it. Any other benifit of having it in there?
Last edited by kyyu on Fri Jul 22, 2011 10:30 pm, edited 2 times in total.
-
kyyu
-
- Posts: 150
- Joined: Mon Jan 25, 2010 12:32 pm
- Location: Maryland, USA
- Name: Kwok Yu
by Jim » Fri Jul 22, 2011 10:29 pm
Very handy. Thanks.
-
Jim
- Global Moderator
-
- Posts: 4126
- Joined: Mon Nov 12, 2007 10:13 pm
- Location: NEOH
- Name: Jim
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
-
by TIG » Sat Jul 23, 2011 10:51 am
kyyu I see what you mean - it seems that the resetting of the scale- handles happens outside of the undo stack ? The definition.behavior.no_scale_mask= seems weird in this respect ? Fortunately you have a simple reset to 'all' in your dialog choices... 
TIG
-

TIG
- Global Moderator
-
- Posts: 13919
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by kyyu » Sat Jul 23, 2011 5:46 pm
I added a toolbar. 1st post updated to version 1.1
-
kyyu
-
- Posts: 150
- Joined: Mon Jan 25, 2010 12:32 pm
- Location: Maryland, USA
- Name: Kwok Yu
by TIG » Sat Jul 23, 2011 6:37 pm
Thanks! 
TIG
-

TIG
- Global Moderator
-
- Posts: 13919
- Joined: Mon Nov 12, 2007 7:24 pm
- Location: Northumbria UK
- Name: TIG
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by rv1974 » Sun Jul 24, 2011 8:03 am
Hi Kyyu! Could you please make a simple version of the script without any icons and dropdown options? Just a distillated simple scale ruby. Please! Thank you!
-
rv1974
-
- Posts: 511
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by halroach » Sun Jul 24, 2011 8:53 am
kyyu wrote:Description: This plugin makes it easier to use the scale tool, on thin sheet parts. When the scale tool is used on a modified component/group, the drag handles are reduces from the normal 26 to only 10. Tested on SU8, and also seems to work with SU7.
From Plugins Menu: If nothing is selected, than all active groups/components are processed. Run from the Plugins menu: "[ky] Simple Scale Handles"
Nice plugin! Though it doesn't work for me as described. If I select one component, and run the tool, it still effects all of the components, except for components that are within components. No matter what I select, it always effects everything.
-
halroach
-
- Posts: 167
- Joined: Sat Mar 29, 2008 1:12 pm
- Name: Halroach
by kyyu » Sun Jul 24, 2011 8:40 pm
rv1974 wrote:Hi Kyyu! Could you please make a simple version of the script without any icons and dropdown options? Just a distillated simple scale ruby. Please! Thank you!
You really want a one way ruby? copy/paste into ruby console or .rb file. - Code: Select all
UI.menu("Plugins").add_item("simple scale handles"){Sketchup.active_model.definitions.each{|e|e.behavior.no_scale_mask=88}}
Last edited by kyyu on Sun Jul 24, 2011 8:54 pm, edited 1 time in total.
-
kyyu
-
- Posts: 150
- Joined: Mon Jan 25, 2010 12:32 pm
- Location: Maryland, USA
- Name: Kwok Yu
by kyyu » Sun Jul 24, 2011 8:52 pm
Halroach wrote:kyyu wrote:Description: This plugin makes it easier to use the scale tool, on thin sheet parts. When the scale tool is used on a modified component/group, the drag handles are reduces from the normal 26 to only 10. Tested on SU8, and also seems to work with SU7.
From Plugins Menu: If nothing is selected, than all active groups/components are processed. Run from the Plugins menu: "[ky] Simple Scale Handles"
Nice plugin! Though it doesn't work for me as described. If I select one component, and run the tool, it still effects all of the components, except for components that are within components. No matter what I select, it always effects everything.
From the plugin menu? I just double check and it works the way it should. From the toolbar icon, it's supposed to only processes everything (if you look at the next paragraph in the description). The idea was that a depressed icon would indicate, you had processed everything. Although, I could probably set it up so the toolbar can be used with selection and only depress whatever was last all processed. You can still click the icon, when it is depressed. Is that the way people would like to have it set up?
-
kyyu
-
- Posts: 150
- Joined: Mon Jan 25, 2010 12:32 pm
- Location: Maryland, USA
- Name: Kwok Yu
by kyyu » Mon Jul 25, 2011 6:23 am
Updated to v1.2, see 1st post. The menu item has always processed the selection, if it exsit. Now the toolbar icons do this, too. But there is an option to change it back to only processing all. See the description. Also, I darkened the icons.
-
kyyu
-
- Posts: 150
- Joined: Mon Jan 25, 2010 12:32 pm
- Location: Maryland, USA
- Name: Kwok Yu
by rv1974 » Mon Jul 25, 2011 6:59 am
kyyu wrote:rv1974 wrote:Hi Kyyu! Could you please make a simple version of the script without any icons and dropdown options? Just a distillated simple scale ruby. Please! Thank you!
You really want a one way ruby? copy/paste into ruby console or .rb file. - Code: Select all
UI.menu("Plugins").add_item("simple scale handles"){Sketchup.active_model.definitions.each{|e|e.behavior.no_scale_mask=88}}
It's gettinng better. There's one last step. Now your simplified script assures that the next scale operation will be with simple handles, correct? What I'd like to get is simplified scale all together at once. Thank you so much
-
rv1974
-
- Posts: 511
- Joined: Tue Nov 13, 2007 11:38 am
- Name: rv1974
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by halroach » Mon Jul 25, 2011 8:12 am
kyyu wrote:Updated to v1.2, see 1st post. The menu item has always processed the selection, if it exsit. Now the toolbar icons do this, too. But there is an option to change it back to only processing all. See the description. Also, I darkened the icons.
The last update 1.2 works like expected. It was a bit confusing for me when the menu item was doing something different than what the toolbar was doing. By what it looks, basically what the plugin does is change the scale properties for each component, right? 1. I think some people may confuse this tool as being a separate scale tool that scales only in the XYZ direction... but it is actually a tweak for each component to scale differently, with the original scale tool. I guess it is similar to using dynamic component scale attributes (as in the image attached) 2. would this tweak have any effect on model performance? or file sizes!? When I was using dynamic component attributes for this exact same scaling idea, it used to make overall sketchup performance a bit laggy at times. 3. Is it at all possible to have a separate scale tool that would do just this, without the need to change properties of each or all of the components, a tool that would work on simple un-grouped geometry as well? thanks!
Please, register (free) to access all the attachments on the forums.
-
halroach
-
- Posts: 167
- Joined: Sat Mar 29, 2008 1:12 pm
- Name: Halroach
by halroach » Mon Jul 25, 2011 10:38 am
In the latest version 1.2, there is a problem that the simple scale isn't constrained to only X Y Z, but also one more XY... see attached image. I used the toolbar to change the properties...
Please, register (free) to access all the attachments on the forums.
-
halroach
-
- Posts: 167
- Joined: Sat Mar 29, 2008 1:12 pm
- Name: Halroach
by kyyu » Mon Jul 25, 2011 12:15 pm
Halroach wrote:The last update 1.2 works like expected. It was a bit confusing for me when the menu item was doing something different than what the toolbar was doing. By what it looks, basically what the plugin does is change the scale properties for each component, right?
Yes, the user is selecting or processing all components/groups. And I explained, in basically the 2nd sentence of the 1st post that a property of the comp/group was being modified. I get confused myself about other peoples plugins. It's just the nature of things, the wild west of plugins. Halroach wrote:1. I think some people may confuse this tool as being a separate scale tool that scales only in the XYZ direction... but it is actually a tweak for each component to scale differently, with the original scale tool. I guess it is similar to using dynamic component scale attributes (as in the image attached)
2. would this tweak have any effect on model performance? or file sizes!? When I was using dynamic component attributes for this exact same scaling idea, it used to make overall sketchup performance a bit laggy at times.
The properties in that picture look very familiar: http://code.google.com/apis/sketchup/do ... cale_mask=I am using those exact properties, from the SU ruby api. So maybe you will get the same limitations? Big models is kinda outside my knowledge zone. I'm still using an old computer, Pentium 4, but it's enough for my need. Just do small home project with SU. Halroach wrote:3. Is it at all possible to have a separate scale tool that would do just this, without the need to change properties of each or all of the components, a tool that would work on simple un-grouped geometry as well?
Of course, anything is possible, but would you spend the time to do it? Probably not, usless it was very important to you. Even this small pugin, I probably spent an evenings time spread over a few days. And I'm no expert, just slowly learning. But I see that Fredo6 just put a similar, but real tool mod in his FredoScale plugin. Looks like he is responding to the same request I saw. I just happen to come across a solution and remembered the request. Check it out: viewtopic.php?f=323&t=17948&start=600#p343978Halroach wrote:In the latest version 1.2, there is a problem that the simple scale isn't constrained to only X Y Z, but also one more XY... see attached image. I used the toolbar to change the properties...
Yes, I have X,Y,Y and (X+Y). The request was for scaling sheet parts. So X+Y coupling is fine and probably wanted. I just removed all z coupling. If you want, just X,Y,Z; it's easy enough to change: Line#56 where it has "e.behavior.no_scale_mask=88" just change the "88" to "120".
-
kyyu
-
- Posts: 150
- Joined: Mon Jan 25, 2010 12:32 pm
- Location: Maryland, USA
- Name: Kwok Yu
by halroach » Mon Jul 25, 2011 2:15 pm
thank you for the long reply! Yes, I have X,Y,Y and (X+Y). The request was for scaling sheet parts. So X+Y coupling is fine and probably wanted. I just removed all z coupling. If you want, just X,Y,Z; it's easy enough to change: Line#56 where it has "e.behavior.no_scale_mask=88" just change the "88" to "120".
That will definitely be of help! thanks of the pointers!
-
halroach
-
- Posts: 167
- Joined: Sat Mar 29, 2008 1:12 pm
- Name: Halroach
by jolran » Mon Jul 25, 2011 3:31 pm
Nice icons Kyyu! Very useful plugin.
-

jolran
-
- Posts: 635
- Joined: Sun Oct 26, 2008 9:23 pm
- Location: Sweden
- Name: Joel G
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
by kyyu » Mon Jul 25, 2011 7:59 pm
jolran wrote:Nice icons Kyyu! Very useful plugin.
Thanks, my 1st icons. I think the most time was spent, just making the icons. 
-
kyyu
-
- Posts: 150
- Joined: Mon Jan 25, 2010 12:32 pm
- Location: Maryland, USA
- Name: Kwok Yu
by jolran » Mon Jul 25, 2011 8:05 pm
Thanks, my 1st icons. I think the most time was spent, just making the icons.
He he! Yes I know. It's difficult to make them look good after downscaling so much. Anyway.. Good job 
-

jolran
-
- Posts: 635
- Joined: Sun Oct 26, 2008 9:23 pm
- Location: Sweden
- Name: Joel G
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Advanced
by rock1 » Sun Aug 14, 2011 1:33 pm
i'm having a problem using this tool. when i click either of the two toolbars button, the default scaling handles remain. they never change to the simple scale tool  what should i do?
Signature removed by SCF Admin
-
rock1
-
- Posts: 185
- Joined: Tue Apr 19, 2011 8:01 pm
by kyyu » Sun Aug 14, 2011 3:41 pm
rock1 wrote:i'm having a problem using this tool. when i click either of the two toolbars button, the default scaling handles remain. they never change to the simple scale tool  what should i do?
Do you have a group or component, in your drawing, for the plugin to modify? You can give it a try under the plugins menu, but no one else has reported a problem with the toolbar?
-
kyyu
-
- Posts: 150
- Joined: Mon Jan 25, 2010 12:32 pm
- Location: Maryland, USA
- Name: Kwok Yu
by Ad Machine » 5 minutes ago
Not a Premium Member yet? Check out the great time-limited deal we are offering.
-
Ad Machine
- Robot
-
- Posts: 2012
-
Return to Plugins
|