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[]=

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement