Plugin request: set default color to back faces.
-
I have a very specific need where I need to set only 2 parts of my model to have both a front and a back face color. A lot of my polygons have both a front and back face color where only one was actually intended, but for one reason or another the back face got colored.
No idea how common this need is... probably not very.
So.... my request is a plugin that removes the back-face color in a model and replaces it with the default.
-
Hi,
Did you test this ? http://rhin.crai.archi.fr/rld/plugin_details.php?id=701
-
No, but from the description it doesn't seem to be what I need. Both the front and back have a color and everything is correctly oriented. I need the back color removed.
-
My tool swaps materials and reverses the face...
You want this much simpler one-linerSketchup.active_model.selection.to_a.each{|e|e.back_material=nil if e.class==Sketchup;;Face}
... use with care...
-
Hmm, that does work but it doesn't work for anything that is nested in groups...
-
@agamemnus said:
Hmm, that does work but it doesn't work for anything that is nested in groups...
You never asked for it to!
This will process the entire model's contents including any groups or components, down through all nesting too...m=Sketchup.active_model; m.entities.each{|e|e.back_material=nil if e.class==Sketchup;;Face}; m.definitions.each{|d|next if d.image?; d.entities.each{|e|e.back_material=nil if e.class==Sketchup;;Face}}
-
Thanks.
Advertisement