On 13/03/2018 at 07:25, xxxxxxxx wrote:
Hi,
I'm trying to change a grid filter that only the perspective view.
I was predictable, my code doesn't work.
The following code changes grid filter for all viewport.
bd = doc.GetActiveBaseDraw()
drawFilter = bd.GetDisplayFilter()
cam = bd.GetEditorCamera()
projection = cam.GetProjection()
if projection == c4d.Pperspective:
if drawFilter & c4d.DISPLAYFILTER_GRID:
bd[c4d.BASEDRAW_DISPLAYFILTER_GRID] = False
else:
bd[c4d.BASEDRAW_DISPLAYFILTER_GRID] = True
bd.Message(c4d.MSG_CHANGE)
c4d.EventAdd()
Could I change grid filter for one of a view or only perspective view?
If it possible, where can I get this information in the SDK?