[Plugin] Script selects the line or face.(UPDATED 15/02/16)

[Plugin] Script selects the line or face.(UPDATED 15/02/16)

Postby sahi » Fri Jun 15, 2012 5:52 am



The script selects the line or face.

The first icon >> click on it - and only the lines stand out >> again click on it >> disables script

The second icon >> click on it - and distinguished only by persons >> again click on it deactivates the script >>
5
Last edited by sahi on Tue Feb 16, 2016 6:08 pm, edited 3 times in total.

sahi 
PluginStore Author
PluginStore Author
 

Re: [Plugin] The script selects the line or face.

Postby Rich O Brien » Wed Dec 12, 2012 5:53 pm

I added a tutorial to this plugin as I think it is an essential tool in SketchUp. :thumb:
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] The script selects the line or face.

Postby dtrarch » Wed Dec 12, 2012 11:21 pm

Sahi

Just a killer app and thank you very much :sketchstatic:

dtr
0

dtrarch 
Premium Member
Premium Member
 

Re: [Plugin] The script selects the line or face.

Postby mitcorb » Thu Dec 13, 2012 3:56 am

Great concept. Congratulations, sahi. And thank you, Rich, for that video.

Now, a real trick would be to select only vertices. :mrgreen:
0
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb 
Top SketchUcator
 

Re: [Plugin] The script selects the line or face.

Postby Edson » Thu Dec 13, 2012 8:50 pm

sahi,

great plugin! I suggest you change the title of this topic to reflect the exact name of your plugin. otherwise people will have a hard time find it, as was my case. something like [Plugin] selection_edge would work nicely. by the same token, why does the name of the plugin reflect what it does? selection_edge does not tell one that it also select faces.

best regards.
0
edson mahfuz, architect | porto alegre • brasil
http://www.mahfuz.arq.br
User avatar
Edson 
Global Moderator
 

Re: [Plugin] The script selects the line or face.

Postby mitcorb » Fri Dec 14, 2012 12:43 am

How about Plugin: Select/Isolate Edge or Face.
How about Plugin: Discrete Selection Edge or Face.

Either one is all yours-- or none of the above.
-1
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb 
Top SketchUcator
 

Re: [Plugin] The script selects the line or face.

Postby sahi » Sat Dec 15, 2012 11:00 pm

Rich O Brien wrote:I added a tutorial to this plugin as I think it is an essential tool in SketchUp. :thumb:

Hi!
Thanks Rich O Brien

PS:I do not speak English so it's hard to explain all the functions of the plug
0

sahi 
PluginStore Author
PluginStore Author
 

Re: [Plugin] The script selects the line or face.

Postby irwanwr » Sun Jan 27, 2013 8:59 pm

[Edited]
Got it. Can see the difference between this plugin with TT Selection Toys.
Thank you Sahi, for this one, Axes Comp and Krug. I think this should be one of my "must have" plugin :)
0
User avatar
irwanwr 
 

Re: [Plugin] The script selects the line or face.

Postby cityblueskyz » Thu Apr 25, 2013 3:16 am

Thank you very much for sharing
It really is a very convenient plug-in :thumb:
0

cityblueskyz 
 

Re: [Plugin] The script selects the line or face.

Postby pilou » Thu Apr 25, 2013 7:49 am

This sort of selection don't yet existing in another plugins ? ( Selection Toys etc...)
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] The script selects the line or face.

Postby snakeysnape » Fri Mar 07, 2014 8:52 pm

Hi All,

I wonder if anybody else is experiencing it, but this plug-in don't work for me when I use it with SU 2014. Previously in SU8 with select face toggled on even if I triple click a model only face would be selected as expected but for SU2014 edges are included in the selection.
I hope this gets resolved, as its been a real helpful plugin for me.
0

snakeysnape 
 

Re: [Plugin] The script selects the line or face.

Postby sdmitch » Sun Mar 09, 2014 5:39 pm

I have experienced the same results. Works perfectly in SU8 but fails in SU2014 with no errors reported in the Ruby Console.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] The script selects the line or face.

Postby cotty » Sun Mar 09, 2014 6:36 pm

snakeysnape wrote:I hope this gets resolved, as its been a real helpful plugin for me.

Until then, you can use Thomthoms selections toys as an alternative for this task.
0
User avatar
cotty 
Top SketchUcator
 

Re: [Plugin] The script selects the line or face.

Postby sdmitch » Sun Mar 09, 2014 6:51 pm

The code
Code: Select all
edges=sel.grep(Sketchup::Edge); sel.clear; sel.add edges

works in SU2014 but causes a stack error that crashes SU8.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] The script selects the line or face.

Postby driven » Sun Mar 09, 2014 8:45 pm

sdmitch wrote:The code...
works in SU2014 but causes a stack error that crashes SU8.


on mac both
Code: Select all
sel=Sketchup.active_model.selection
edges=sel.grep(Sketchup::Edge).to_a; sel.clear; sel.add edges
Code: Select all
sel=Sketchup.active_model.selection
edges=sel.grep(Sketchup::Edge); sel.clear; sel.add edges
work in v8 and v2014
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: [Plugin] The script selects the line or face.

Postby sdmitch » Sun Mar 09, 2014 9:08 pm

Apparently my v8 is different because it still crashes with that addition.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] The script selects the line or face.

Postby driven » Sun Mar 09, 2014 9:12 pm

my test file had less than 2000 edges so is it a limit?
john
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: [Plugin] The script selects the line or face.

Postby sdmitch » Mon Mar 10, 2014 1:00 am

No I was using a small sample consisting of 3 or 4 faces.

I did find a solution that works in both SU8 and SU2014 and that was to remove the observer before processing the selection and add it back after while using the selection processing code previously posted.

Code: Select all
   def onSelectionBulkChange(selection)
      Sketchup.active_model.selection.remove_observer self
      get_selection_edge(selection) if(@select_edge)
      # get_selection_edge_smooth(selection) if(@edge_smooth)
      get_selection_face(selection) if(@select_face)
      Sketchup.active_model.selection.add_observer self
   end
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] The script selects the line or face.

Postby snakeysnape » Mon Mar 10, 2014 10:33 am

Hi Sdmitch,

Sorry but can you post the fixed plugin in here? I am confused as to where to put the selection code.

thanks
0

snakeysnape 
 

Re: [Plugin] The script selects the line or face.

Postby sdmitch » Mon Mar 10, 2014 3:03 pm

snakeysnape wrote:Hi Sdmitch,

Sorry but can you post the fixed plugin in here? I am confused as to where to put the selection code.

thanks


With apologies to Sahi.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] The script selects the line or face.

Postby snakeysnape » Wed Mar 12, 2014 6:31 am

Thanks sdmitch,

Thanks also to Sahi hope you don't feel bad we've 'hijacked' your plugin.
0

snakeysnape 
 

Re: [Plugin] The script selects the line or face.

Postby Pu » Wed Jul 09, 2014 10:06 pm

not work. (sketchup 2014)
-1

Pu 
 

Re: [Plugin] The script selects the line or face.

Postby ClausGS » Tue Dec 23, 2014 6:24 am

sahi wrote:

The script selects the line or face.

The first icon >> click on it - and only the lines stand out >> again click on it >> disables script

The second icon >> click on it - and distinguished only by persons >> again click on it deactivates the script >>
selection_edge.zip


Hi Sahi

Have used this plugin for a long time, but now it do not work in SU 2015 ?
Can you fix that?

Thanks for your great support...
Claus
ClausGS

Posts: 17
Joined: 20 Jun 2009 10:12
0

ClausGS 
 

Re: [Plugin] The script selects the line or face.

Postby driven » Tue Dec 23, 2014 2:11 pm

@Claus,

if you open the file in notepad++ and find and replace...

if you have the original version
Code: Select all
 sel.each
to
Code: Select all
 sel.to_a.each


or if you have sdmitch [faster] version
Code: Select all
sel.grep
to
Code: Select all
sel.to_a.grep

this works in v2015 for me...
john
0
learn from the mistakes of others, you may not live long enough to make them all yourself...

driven 
PluginStore Author
PluginStore Author
 

Re: [Plugin] The script selects the line or face.

Postby HirokaMatsuiko2015 » Sun Jan 11, 2015 1:30 pm

thank you for this tool im using it right now

if its possible to request
add shortcut keys with toggling selection tool

right now when paradigm or changing between tools i need to hit ( Face Select > Spacebar ) or ( Edge Select > Spacebar )

i think its more convenient in one keys
like for example if hit X key it will also toggle the selection keys

similar to other 3D software
0

HirokaMatsuiko2015 
 

Re: [Plugin] The script selects the line or face.(UPDATED)

Postby sahi » Sun Feb 14, 2016 11:35 pm

Updated the plug-in in the first message
2

sahi 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 8 guests

Visit our sponsors: