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!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Xray ruby component?

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 4 Posters 1.2k 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.
    • pilouP Offline
      pilou
      last edited by

      Does exist a ruby for give to component or a selection the propriety "Xray"?
      Of course without change the normal aspect of the rest of the scene πŸ˜‰
      Thx by advance β˜€

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

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

        I'm not sure if a script is out there, but I've done it for myself. The net results is that it works from Ruby, but your Materials count will inflate, because now you have copies of materials that have an opacity to them.

        Which, may or may not be a problem for your model.

        Todd

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          Seems a normal result because you have 2 views possible of a same texture πŸ˜„

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

          1 Reply Last reply Reply Quote 0
          • fredo6F Offline
            fredo6
            last edited by

            I quickly built a script to toggle Xray on a part of the model and posted it in the French section of the forum (at http://www.sketchucation.com/forums/scf/viewtopic.php?f=51&t=6589&st=0&sk=t&sd=a&start=30

            As Todd says, it will double the number of materials, as you have to duplicate materials present on original faces with an alpha transparency set to 0.25. So "purge unused" should be done at some point. It may also take some time on large models.

            The script works on a selection of groups, components or isolated faces, possibly nested.

            It will Xray the selection. Then, if you do not select anything, it will work in Toggle mode (Xray / Normal / Xray / Normal, ...)


            XraySelection.rb

            1 Reply Last reply Reply Quote 0
            • pilouP Offline
              pilou
              last edited by

              Cool β˜€
              See remarks on the french Forum part πŸ˜‰

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

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

                Trying this great ruby, i wonder if it possible to do the same thing with the other face styles, and the great one would be to select several items and apply them different styles within the model.

                1 Reply Last reply Reply Quote 0
                • fredo6F Offline
                  fredo6
                  last edited by

                  Wireframe is even simpler, as you just hide / show the faces

                  The big problem for Xray, is that I don't find any way to create a material from an existing one, or to assign the new one the same texture as the old one, especially with SU v6, as the JPG are now embedded in SKM files. So the macro works without texture at the moment.

                  Does anyone see a solution?

                  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