Hello,
I'm working to make my plugin compatible with R18. It will render with the Viewport Renderer (or Hardware OpenGL as it was called). I'm filtering out all items from my Viewport except for Polygons & Generators, however the handles are still being rendered. I see that the BASEDRAW_DISPLAYFILTER_HANDLES
filter was added in R19. Is there a way to filter out the handles in R18?
Here is some test code and the result...
import c4d
def main(doc):
bd = doc.GetActiveBaseDraw()
bd[c4d.BASEDRAW_DISPLAYFILTER_BASEGRID] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_BOUNDS] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_CAMERA] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_DEFORMER] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_GENERATOR] = True
bd[c4d.BASEDRAW_DISPLAYFILTER_GRADIENT] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_GRID] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_GUIDELINES] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_HANDLEBANDS] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_HIGHLIGHTING] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_HIGHLIGHTING_HANDLES] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_HORIZON] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_HUD] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_HYPERNURBS] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_JOINT] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_LIGHT] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_MULTIAXIS] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_NGONLINES] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_NULL] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_OBJECTHANDLES] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_OBJECTHIGHLIGHTING] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_ONION] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_OTHER] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_PARTICLE] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_POI] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_POLYGON] = True
bd[c4d.BASEDRAW_DISPLAYFILTER_SCENE] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_SDS] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_SDSCAGE] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_SPLINE] = False
bd[c4d.BASEDRAW_DISPLAYFILTER_WORLDAXIS] = False
c4d.EventAdd()
if __name__=='__main__':
main(doc)
Thank you very much!