On 26/10/2014 at 09:48, xxxxxxxx wrote:
I'd like to setup a script so that I can associate a hotkey with showing/hiding the SDS display filter.
Not getting errors, but can't figure out how to get it actually update the viewport. Also, what's the smartest way to set this up so that it toggles on and off with the same hotkey?
import c4d from c4d import documents def main() : draw = doc.GetActiveBaseDraw() draw[c4d.DISPLAYFILTER_SDS] = True print(draw.GetDisplayFilter()) if __name__=='__main__': main()