Hi all,
lately I’ve started using SU for interior decoration and it’s almost like learning the program from the beginning (entirely different set of tools that you have to use.)
In this workflow, it is good to be able to present easily the electrics and I don’t want this to interfere too much with the rest of the workflow.
The best I could come up with, is create a set of switches/outlets/etc, each with a triangle ‘guide’ in a specific layer which I can turn on and off.
the produced result in plan view is something like the following:
The only thing I have to do, is colour all the layers grey and only the ‘electric guides’ layer red. (and of course assign a ‘colour by layer’ style to that scene. (I don’t use layer colour in any other case anyway)
This works fine, with not too much preparation except for having to colour all the layers (and any new one that I might introduce later in the design process.
I have found the following ruby: model = Sketchup.active_model
layers = model.layers
layerarr = layers.to_a
for i in layerarr
i.color = Sketchup::Color.new(45, 45, 45)
end
but the problem is
a) It is boring to have to try to find it every time,open it, copy it, paste it, run it
b) with any new layers introduced I have to repeat the process.
So my question is this:
is there a way to ‘force’ sketchup to assign a specific colour to any new layer by default
or (even better) to turn this ruby into a plugin so I can assign a shortcut and run it with a press of a button.
also, if anyone has any better way of dealing with electrics, I’m willing to learn!
I think I’d take an easier route. I’d put all the electrics on a layer and set its color to red and I wouldn’t bother with the layer colors for the rest of the model. Then I would create two scenes, one of the rest of the model using the Hidden Line style with edge color set to gray and a second with only the electrics with the edge color set to By Material to show the red of the layer color. Then in LO, stack the viewports. This will give you additional controls over the way the model is displayed, too.
Have you tried : Go into the layers panel, double click on a color this will bring up an edit color dialog. The color can be changed to what ever you wish.