Use Python to Toggle Camera Visibility in C4D

If you find yourself constantly toggling the foreground and background visibility in Cinema 4D of a particular camera object, why not automate that process?

Arthur works at Cocoa Media Productions in Finland, and here, shows the problem. It’s pretty clear how much time it takes to continually toggle bg and fg visibility. Thankfully, its not too in depth of a process to employ a little python script so that you can easily create a toggle.

Aturtur walks through creating the script step by step. It amounts to a few simple lines of code, based on the existing camera in the C4D scene.

If you are looking to learn more about Python Scripting in C4D you can check out some other resources that were previously posted on

C4D Artist Noah Witchell offers up some tricks for using C4D Python scripting. Diving a bit further, Pim Grooff walks through creating a basic object plugin in Cinema 4D with Python.