sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Toggle EndPoints

    Scheduled Pinned Locked Moved Plugins
    6 Posts 4 Posters 8.6k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Arty2A Offline
      Arty2
      last edited by Arty2

      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.


      endpoints.rb

      1 Reply Last reply Reply Quote 0
      • renderizaR Offline
        renderiza
        last edited by

        This is very useful tool thank you.

        [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

        1 Reply Last reply Reply Quote 0
        • bazB Offline
          baz
          last edited by

          Great, very useful, thanks.

          1 Reply Last reply Reply Quote 0
          • T Offline
            timzy
            last edited by

            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!

            1 Reply Last reply Reply Quote 0
            • renderizaR Offline
              renderiza
              last edited by

              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!

              [url=https://www.sketchupcode.com/:z3kqsidd]My Extensions ...[/url:z3kqsidd]

              1 Reply Last reply Reply Quote 0
              • T Offline
                timzy
                last edited by

                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!

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement