How to get the current viewport shading modes using python
mfersaoui last edited by mfersaoui
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...)
s_bach last edited by s_bach
as always, please add tags to your post and mark it as a question (How to Post Questions). Thanks.
s_bach last edited by
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.
zipit last edited by
This post is deleted!
mfersaoui last edited by
Thank you. Sorry for tags, I added tags in my topic but were not included. I don't know why.