Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
π« Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
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=nilmakes face have no material
andface.back_material=nilmakes 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 aColorobject, you can then get its RGB values in the normal way etc...
You can also set these vales to a new color with[]=

Advertisement