Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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
the display mode of a given viewport window (BaseView) is stored in its BASEDRAW_DATA_SDISPLAYACTIVE parameter.
BASEDRAW_DATA_SDISPLAYACTIVE
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.
@s_bach Thank you. Sorry for tags, I added tags in my topic but were not included. I don't know why.