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

[Plugin Request] - Clear All/Selected layer colours

Scheduled Pinned Locked Moved Plugins
4 Posts 3 Posters 138 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 1 Oct 2012, 16:00

    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
    • T Offline
      thomthom
      last edited by 1 Oct 2012, 18:08

      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 1 Oct 2012, 18:14

        @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
        • T Offline
          TIG Moderator
          last edited by 1 Oct 2012, 21:28

          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
          1 / 1
          • First post
            3/4
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement