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

    [Plugin Request] - Clear All/Selected layer colours

    Scheduled Pinned Locked Moved Plugins
    4 Posts 3 Posters 185 Views 3 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.
    • H Offline
      haynesc
      last edited by

      Hi all...

      [Firstly ... If they is a current tool can somebody point me in that direction ]

      I would love to have a script that would Clear All(or)Selected layer colours based on a dialog pop-up - similar to one for materials

      Thanks in advance

      Chris

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        Unfortunately there isn't any access to layer colours via the Ruby API.

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

        1 Reply Last reply Reply Quote 0
        • H Offline
          haynesc
          last edited by

          @thomthom said:

          Unfortunately there isn't any access to layer colours via the Ruby API.

          ๐Ÿ˜ž oh well nevermind

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

            Over three years ago I wrote a convoluted script that did change layer colors.*** ๐Ÿ˜ฎ
            It needs Pro...
            It renames the original layer.
            It makes a DXF with the relevant original-layer-name, giving it the specified color and imports the DXF file to make the new layer, with the original-name and the new color...
            Then it reassigns every entity in the model [and also inside its definitions] that used the original-layer to this new-layer [with the original-name]...
            The original-now-unused-layer-with-the-temp-name is now purged.
            Ta-da... the objects appear to be on the same layer but it has the specified new color...
            *** layer-color=.rb
            http://sketchucation.com/forums/viewtopic.php?p=177016#p177016
            It IS unbelievably clunky.
            It does something that the API ought to do readily !
            I'd only use it if I really had to ๐Ÿ˜ฒ

            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