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:
to be worked with later in Layout.
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)
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!