sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    Want new tool: Select through transparent face

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 7 Posters 803 Views 7 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.
    • mitcorbM Offline
      mitcorb
      last edited by

      Hi:
      I just voted your post up.
      While I am very used to temporarily deleting a face to get at others or just scrolling right through and navigating inside a volume, or switching off layers, this would be a very nice plugin-- that is if one does not already exist and I have been asleep at the [scroll] wheel. 😒

      I take the slow, deliberate approach in my aimless wandering.

      1 Reply Last reply Reply Quote 0
      • dukejazzD Offline
        dukejazz
        last edited by

        Use the wireframe mode of styles

        or

        Use selection tool: (right to left) to forward selecting inside items (in styles transparent view)

        but not (left to right) this selects everthing

        or

        select a edge or face then right click zoom extents and then scroll (in styles transparent view)

        or

        select a edge or face of inside item then left click 3 times (in styles transparent view)

        Yea! this will work.

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          If you don't like section-planes, then what's wrong with xray mode ?

          It would be possible to make a convoluted observer that projected rays from the camera and they hit the back-side of a face that had a transparent material applied to its back [e.g. forming a 'wall' around a room] then 'hide it' until the view sees once aging its front-face , but this seems terribly intensive and complex.
          Perhaps have it toggle so pressing a key does it on/off, rather than dynamically ??
          😕

          TIG

          1 Reply Last reply Reply Quote 0
          • onidarbeO Offline
            onidarbe
            last edited by

            Could anyone help me to make this ruby "ghost" script?
            How can I redirect the user-interface to the things behind an object as if it doesn't exist?

            thanks

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              You'll need to detect if a face has a transparent material on its back-side, then if so, if that face is in front of the camera eye projected by direction to face.plane test and then perhaps it it's within 'range' [raytests ?]: then, if that face is the front or back-side towards the camera, and then if so temporarily hide that face by a temporarily reassignment to an 'off' layer.
              Remembering to iterate the model.active_entities to consider all potential faces...

              You also need to keep a record (perhaps as a hash ? face=>layer etc etc) of all of the changed faces so when you are done you can revert them to their original the previous [visible] layer[s]...

              Also faces inside groups presently convolution of transformation and normal etc...

              You big issue is determining when it's done...
              I think dynamically changing the model is too heavy.
              How about a toggle toolbar button?
              One click any faces in front of the camera meeting these specs are hidden, another click they reappear...

              TIG

              1 Reply Last reply Reply Quote 0
              • onidarbeO Offline
                onidarbe
                last edited by

                Maybe we can change the X-ray transparency to 0%(no transparency)? That would do it, but how?

                1 Reply Last reply Reply Quote 0
                • Dan RathbunD Offline
                  Dan Rathbun
                  last edited by

                  @onidarbe said:

                  Maybe we can change the X-ray transparency to 0%(no transparency)? That would do it, but how?

                  WireFrame Mode

                  Sketchup.active_model.rendering_options["RenderMode"]= 0

                  same as:
                  WireFrameMode_StylesToolbar.png

                  💭

                  I'm not here much anymore.

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    The issue is not to see through [aka 'hide'] SOME faces, but also to be able to clearly see and then be able to select other faces that remain.
                    So my outline of a tool that selectively 'hides' some faces is feasible - provided that the back-face of those faces has a transparent material and so on...
                    A we placed non-visible section-plane is favorite........

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      marksup
                      last edited by

                      I have just added 'select through transparent face' functionality to the X-ray view mode of my SUperPlanRuby plugin.

                      You can see the X-ray view mode at the start of the YouTube video “How to count your BIM doors and Windows” (
                      http://youtu.be/W0_Vhd1Er6M
                      )

                      The attached image shows a bed Component Instance having just been selected through the transparent wall.

                      The selection is confirmed in the Entity Info window - but I have yet to master context processing via the right/3rd mouse button, since the onRButtonDownTool function seems to be inactive - even though onLButtonDown is working OK - anyone any ideas why?


                      Image of selection through xray wall

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        Aerilius
                        last edited by

                        There is also an approach without making changes to entities:
                        One could also use a repeated raytest, and let it pass through all faces whose material has an alpha value lower than a threshold, or a texture whose filename endswith "png" (however, scripters can not determine which texture pixels are transparent). Then the last face would be added to the selection.

                        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