Hello,
I am trying to change the Viewport Renderer parameters. I was able to use the method illustrated in the code sample below, but something changed (I believe in the API) and this now leads to TypeError: __setitem__ expected str, not bool
. If I'm not to assign these values as a boolean, can someone please advise on how these are to be set? Thank you.
import c4d
from c4d import documents
def main():
doc = documents.GetActiveDocument()
rdata = doc.GetActiveRenderData()
rd = rdata.GetData()
post = rdata.GetFirstVideoPost()
post[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_NGONLINES] = False
post[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_OTHER] = False
post[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_SDSCAGE] = False
post[c4d.VP_PREVIEWHARDWARE_DISPLAYFILTER_ONION] = False
if __name__=='__main__':
main()