How to get default front and back color using Ruby API?
Also, why default materials on a face are nil but show colored up?
Class: Sketchup::RenderingOptions
Sketchup.active_model.rendering_options["FaceFrontColor"]
Sketchup.active_model.rendering_options["FaceBackColor"]
If there is no material applied to face the above mentioned colors will shown. (or color by layer/tag)
5 Likes
To continue on this, “default material” is just another name for no material. Similarly, Untagged (previously called Layer0) means no tag (previously no layer).
2 Likes
If a face has ‘no material’ and it’s contained within a group or component-instance, and that container has a material applied onto it, then the face will display with that container’s material, even though the face has ‘no material’.
2 Likes