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...)
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_DATA_SDISPLAYACTIVE parameter.
baseDraw = doc.GetActiveBaseDraw()
if baseDraw is None:
display = baseDraw.GetParameter(c4d.BASEDRAW_DATA_SDISPLAYACTIVE, c4d.DESCFLAGS_GET_0)
if display == c4d.BASEDRAW_SDISPLAY_GOURAUD:
if display == c4d.BASEDRAW_SDISPLAY_QUICK:
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.