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

    X-ray transparency settings?

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 4 Posters 1.4k 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.
    • onidarbeO Offline
      onidarbe
      last edited by

      Does anyone know if I can change the X-ray transparency amount?

      thanks

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

        Check the rendering options hash of the model object.

        model.rendering_options

        http://www.sketchup.com/intl/en/developer/docs/ourdoc/renderingoptions

        πŸ’­

        I'm not here much anymore.

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

          I guess not 😞
          Didn't find anything useful here:
          http://www.sketchup.com/intl/en/developer/su-api/rendering__options_8h.html

          1 Reply Last reply Reply Quote 0
          • pbacotP Offline
            pbacot
            last edited by

            This would be fixed if LO had simple opacity controls in layers.

            MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD

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

              You can only get/set and toggle Xray-mode on/off using:
              Sketchup.active_model.rendering_options["ModelTransparency"] Sketchup.active_model.rendering_options["ModelTransparency"]=true Sketchup.active_model.rendering_options["ModelTransparency"]=false

              The amount of Xray-mode's 'opacity' is 'hard-coded' 😞

              Fredo has made a pseudo Xray-mode tool [can't recall it's name off-hand πŸ˜• ], which works on selected objects, but that just swaps to similar but translucent materials [you could customize the amount of transparency in it] - so although it mimics Xray for parts of the model, it is only useful 'graphically' in images - there are none of the Xray-mode's advantages - like being able to pick 'through' intervening faces etc...

              TIG

              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