π‘ LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering
Download Trial
Get Default Material
-
How do I get the default material for a model for the front and back of faces that don't have materials assigned?
-
-
The default material is 'nil'.
Soface.material=nil
makes face have no material
andface.back_material=nil
makes face have no back material
You can get the color used for the two types of default face material from
model.rendering_options["FaceFrontColor"]
and
model.rendering_options["FaceBackColor"]
which both return aColor
object, you can then get its RGB values in the normal way etc...
You can also set these vales to a new color with[]=
Advertisement