Enable/disable Ambient Occlusion through python

I’m very new to python, I started trying to learn less than 24 hours ago, so I’m sorry if this is shockingly obvious.

I can’t work out how to disable ambient occlusion (or alter its sampling etc.) while preserving ray traced shadows, the world’s ambient colour and materials’ individual ambient settings.

I could effectively disable it by setting every materials’ ambient setting to 0, but I don’t know a convenient way of returning them to their previous settings.

I would appreciate any input!

Thanks,

Al

cant be done. closest is you can enable and disable raytracing.

Thanks, what with the lack of replies I was beginning to suspect as much. Never mind, I’ll just have to work around I guess. Thanks again!

-Al