How to set cinematic anti aliasing quality via script?

Found it myself. Just gonna leave this here.

cam.GetComponent().m_SMAA.settings.quality = SMAA.QualityPreset.Low;
The other mode should be about the same. Change things to public if they are private and you want to access it.