Script to toggle off and on webcam access for apps in System Settings?

It's not as instantaneous as a script would be, but here's a macro that seems to get the job done.

What do you think, @Airy ?