How to get the current viewport shading modes using python
- 
 Hi, 
 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...)
 Thanks!
- 
 Hello, as always, please add tags to your post and mark it as a question (How to Post Questions). Thanks. best wishes, 
 Sebastian
- 
 Hello, the display mode of a given viewport window (BaseView) is stored in its BASEDRAW_DATA_SDISPLAYACTIVEparameter.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. best wishes, 
 Sebastian
- 
 This post is deleted!
- 
 @s_bach 
 Thank you. Sorry for tags, I added tags in my topic but were not included. I don't know why.

