Is it possible to get the current shading modes with python ( the shading mode selected in the menu Display : Gouraud Shading, Gouraud Shading (Lines) or Quick Shading...)
Solved How to get the current viewport shading modes using python
as always, please add tags to your post and mark it as a question (How to Post Questions). Thanks.
the display mode of a given viewport window (BaseView) is stored in its
baseDraw = doc.GetActiveBaseDraw() if baseDraw is None: raise RuntimeError() display = baseDraw.GetParameter(c4d.BASEDRAW_DATA_SDISPLAYACTIVE, c4d.DESCFLAGS_GET_0) if display == c4d.BASEDRAW_SDISPLAY_GOURAUD: print("Gouraud Shading") if display == c4d.BASEDRAW_SDISPLAY_QUICK: print("Quick Shading")
See also the BaseView / BaseDraw Manual.
Thank you. Sorry for tags, I added tags in my topic but were not included. I don't know why.