• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Inverse Selection - where is it?

Scheduled Pinned Locked Moved Developers' Forum
32 Posts 15 Posters 41.3k Views 15 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.
  • G Offline
    Gaieus
    last edited by 10 Feb 2008, 01:03

    I understand your problem, Jeff - and also I'd say the script is working "logically" since those softened (or hidden) edges were not selected until you ran the script so now they got selected.

    Also I understand that you wish the script didn't work this way. Maybe TIG can tweak it a bit...

    Gai...

    1 Reply Last reply Reply Quote 0
    • J Offline
      jeff hammond
      last edited by 10 Feb 2008, 01:44

      ok, cool.. i'm glad i'm getting my point across now.. i admit, i'm no wordsmith. πŸ™‚

      the thing about what's logical or not is confusing because sketchup deals with it two different ways.. if i use edit -> select all (⌘A) or the select tool's window to encompass everything, then the hidden lines remain hidden and unselected (unless i have hidden geometry turned on)... if i use a triple click, then it includes everything including the hidden geometry...
      i'm basing mine off the first choice but the other one makes just as much sense to me.. i just hope both situations are easy to deal with in ruby language (which i know Absolutely zero about)

      dotdotdot

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gaieus
        last edited by 10 Feb 2008, 02:16

        Ah yes, triple select always selects hidden geometry as well. I haven't figured out its logic in this but there may be one.

        However I'm a total non-programmer so I can only use scripts. πŸ˜„

        Gai...

        1 Reply Last reply Reply Quote 0
        • T Offline
          TIG Moderator
          last edited by 10 Feb 2008, 10:19

          Now I see...

          Here v1.1 - it works the same as before, BUT if the selection includes faces then it now assumes you want to include those faces' edges in the selection (visible/hidden/smoothed) even if you haven't explicitly picked any edges: then when it inverts the selection (and say you delete the now selected stuff) any previously selected faces AND their edges are retained...

          Feedback please...

          Gaieus - you might want to move this to the Ruby realms...


          invertselection.rb

          TIG

          1 Reply Last reply Reply Quote 0
          • P Offline
            pilou
            last edited by 10 Feb 2008, 10:42

            works fine when you delete
            but when you hide seems curious result πŸ˜‰
            (hidden geometry was enable for select facett then disable after selection and only 2 facets were selected)

            Edited : all works fine, it was only result when you click on the selected facetts! πŸ‘


            invert3.jpg

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

            1 Reply Last reply Reply Quote 0
            • G Offline
              Gaieus
              last edited by 10 Feb 2008, 10:54

              @tig said:

              ...Gaieus - you might want to move this to the Ruby realms...

              Yeah, it makes sense - "done".
              Thanks for the update, TIG! πŸ‘

              Gai...

              1 Reply Last reply Reply Quote 0
              • J Offline
                jeff hammond
                last edited by 10 Feb 2008, 14:04

                @tig said:

                Here v1.1

                wow TIG.. you_are_the_man

                thank you!

                dotdotdot

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pvbuero
                  last edited by 5 Nov 2010, 06:52

                  @ TIG,

                  that's just fantastic what you're doing here.
                  I face a problem an two minutes later it's been solved thanks to your script. Great πŸ˜„

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 5 Nov 2010, 07:12

                    @pvbuero said:

                    two minutes later

                    ...and two years later there is a reply... πŸ˜†

                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      Jim
                      last edited by 5 Nov 2010, 13:08

                      Curious, has the selection behavior of hidden geom changed in recent versions?

                      Hi

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        thomthom
                        last edited by 5 Nov 2010, 13:31

                        @jim said:

                        Curious, has the selection behavior of hidden geom changed in recent versions?

                        What/how do you mean?

                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          Jim
                          last edited by 5 Nov 2010, 13:36

                          Just my mind being illogical - it makes sense that hidden geoms are included when inverting the selection.
                          It always feels like hidden geoms should not be included in the active_entities collection.

                          Hi

                          1 Reply Last reply Reply Quote 0
                          • J Offline
                            jeff hammond
                            last edited by 5 Nov 2010, 14:31

                            @jim said:

                            Just my mind being illogical - it makes sense that hidden geoms are included when inverting the selection.

                            nah πŸ˜„

                            hidden geometry (by my logic at least) shouldn't come into the equation unless you have it turned on.. otherwise, it should remain hidden..

                            that said, this script will still mess with hidden geometry.. if i draw a cube and a sphere, hide the cube, select the sphere, then invert the selection... the hidden cube will become selected..

                            in my mind, when something is hidden, it should mean that no operations affect it.. it should be ignored..

                            using the sphere/cube example again.. if i hide the cube and do a 'select all', only the sphere(which is visible) will be selected.. that's how it should work i think.

                            [and the same could be said for a window select operation.. if something is hidden and i do a window select over it, it shouldn't be selected because i've chosen to hide it]

                            dotdotdot

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jim
                              last edited by 5 Nov 2010, 15:27

                              @unknownuser said:

                              nah πŸ˜„

                              hidden geometry (by my logic at least) shouldn't come into the equation unless you have it turned on.. otherwise, it should remain hidden..

                              I agree from a user point of view; alttough I can see it both ways. I meant it's logical when using the Ruby API. Otherwise, there would be no way to reference hidden entities.

                              Hi

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                thomthom
                                last edited by 5 Nov 2010, 23:56

                                But the API can access whether Hidden Geometry is on or not..

                                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                                List of my plugins and link to the CookieWare fund

                                1 Reply Last reply Reply Quote 0
                                • K Offline
                                  kwalkerman
                                  last edited by 10 Nov 2010, 21:10

                                  I recently wrote a plugin that will hide all unselected entities:

                                  http://forums.sketchucation.com/viewtopic.php?t=31378

                                  For some of you, this is what you are trying to accomplish by inverting the selection.

                                  I'm pretty sure I first inverted the selection, and then hid geometry, so you are welcome to look at the code and modify (or add a menu option).

                                  --
                                  Karen

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    Trip12091
                                    last edited by 11 Feb 2017, 03:34

                                    This is an old post, but it comes up first on a google search for "Sketchup, invert selection". What I do is select the entire entity that I only want part of (usually a big spiral with 1000s of segments) and then hold down the shift key (you'll see the little + and - sign indicating you can add or subtract elements now) and I'll subtract the pieces I want to keep. Once they have been removed from the selection, I'll delete everything else.

                                    So, "inverse" for me means start by selecting everything as opposed to only selecting the things you want, once you have selected everything unselect the things you want to keep.

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      runninghead
                                      last edited by 7 Apr 2017, 10:17

                                      Not quite what we're after though trip- imagine doing that with 1000 polys and lines by hand πŸ˜„

                                      1 Reply Last reply Reply Quote 0
                                      • SJS66S Offline
                                        SJS66
                                        last edited by 22 Jun 2019, 12:36

                                        InverseSelection is awesome. How'd I go so long without it? Thanks TIG.

                                        1 Reply Last reply Reply Quote 0
                                        • L Offline
                                          LetsSee
                                          last edited by 20 Feb 2020, 23:25

                                          @thomthom said:

                                          @pvbuero said:

                                          two minutes later

                                          ...and two years later there is a reply... πŸ˜†

                                          And yet another TEN years later there is another reply πŸ˜†

                                          I am truly sorry that I so often come so late! I seem to have missed the best 10 years of sketchup, or rather pf the entire internet.

                                          Because today the formerly glorious internet has become a close-popups-close-autoplay-vids-close-cookie-confirmations-close-accept-privacy-not-accepted-close-your-eyes-or-suffer NIGHTMARE.

                                          LOL

                                          No, I am here to say: TIG, you ARE the man, indeed! SO MANY beyond-genious-beyond-cool-solutions I see from you! TIG for President!

                                          aka get rid of the current joke, yeah. 😲

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

                                          Advertisement