[Plugin] Toggle EndPoints
-
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.
-
This is very useful tool thank you.
-
Great, very useful, thanks.
-
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!
-
Hi,
I know I am not Arty2 but when I read you might want to learn to make plugins I was little but exited .
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/developer/docs/ourdoc/renderingoptions
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!
Note: I just spotted my spelling mistake and I got to say I was by it. Instead of " I was little but exited"...I meant to say I was little bit exited.
Anyways English is not my first language so I am forgiving right!
-
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!
Advertisement