[Plugin Request] - Clear All/Selected layer colours
-
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
-
Unfortunately there isn't any access to layer colours via the Ruby API.
-
@thomthom said:
Unfortunately there isn't any access to layer colours via the Ruby API.
oh well nevermind -
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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better ๐
Register LoginAdvertisement