[Plugin] Toggle EndPoints

[Plugin] Toggle EndPoints

Postby Arty2 » Sun Apr 07, 2013 12:37 am

This “plugin” works as an alias for toggling EndPoints on and off, with the intent to be able to chain it into a keyboard shortcut. It can be accessed under Tools → Toggle EndPoints.




I write Javascript and PHP, but Ruby seems quite an untamed beast to my eyes. However I had to hack and slash some simple plugin (thanks stitcher.rb), look around SketchUcation a bit, and get this plugin done with so that I could put it into my workflow.

I hope it proves useful for others as well. Next up, studying Ruby and the SketchUp API; I'm of course open to all suggestions and corrections.
2
Last edited by Arty2 on Mon Apr 08, 2013 9:06 am, edited 1 time in total.
User avatar
Arty2 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Toggle EndPoints

Postby renderiza » Sun Apr 07, 2013 1:22 am

This is very useful tool thank you.
0
User avatar
renderiza 
Premium Member
Premium Member
 

Re: [Plugin] Toggle EndPoints

Postby baz » Sun Apr 07, 2013 4:41 am

Great, very useful, thanks.
0
I am both an early bird and a night owl, I am some form of permanently energized dragon.
User avatar
baz 
 

Re: [Plugin] Toggle EndPoints

Postby timzy » Wed May 08, 2013 5:14 pm

Really useful, thanks! I never use display endpoints but decided to give this a try. It is very helpful in identifying extra vertices along and edge which is something that always gave me issues.

It looks to me as if this method could adapt easily to access other features that cannot normally have a keyboard shortcut assigned. I'm thinking about color edge by axis and color by layer. Others that could be useful would be display watermarks, sky, ground, and transparency.

I don't do any coding but the script looks very simple relative to any others I have looked at. This is not a request mind you but rather I'm asking your opinion. Could this be done fairly easily?

Thanks again!
0

timzy 
 

Re: [Plugin] Toggle EndPoints

Postby renderiza » Wed May 08, 2013 6:01 pm

Hi,

I know I am not Arty2 :oops: but when I read you might want to learn to make plugins I was little but exited :bounce:.

Anyways, the best way to learn as you pointed out is to look at simple scripts others have made and try modifying them and also asking questions on developers forums is vital so please ask ask and ask...no question is stupid!

To point you in the right direction please look at this...http://www.sketchup.com/intl/en/develop ... ingoptions

Its the RenderingOptions section on the SketchUp API guide, in there you can learn how to call 'EdgeColorMode' and 'DisplayColorbyLayer' to be used similar to how Arty2 uses his 'Toggle EndPoints' in his plugin.

Cheers! :thumb:


Note: I just spotted my spelling mistake and I got to say I was :roflmao: by it. Instead of " I was little but exited"...I meant to say I was little bit exited. :oops:

Anyways English is not my first language so I am forgiving right!
0
User avatar
renderiza 
Premium Member
Premium Member
 

Re: [Plugin] Toggle EndPoints

Postby timzy » Fri May 10, 2013 12:36 am

Thanks, that's what I wanted to know. I'll give it a try when I get a minute.

Don't worry about the typo - I've done much worse and English is all I know!
0

timzy 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: RobertoDCross and 10 guests

Visit our sponsors: