Open Source Scripts: Switch To Next/Prev Camera

Here are the two scripts Python: Spoonfed has been working towards during the last week.

These scripts switch the current camera of the active viewport to the next (or previous) camera in the scene. If there is no further camera to be found, the editor camera will be used. If the current camera already is the editor camera, the scripts will jump to the first (or last) camera of the scene.

In other words, the scripts cycle forward (or backward) through all available cameras.

Cameras whose name starts with an underscore "_" are excluded, so you can determine what cameras are available for cycling by naming them accordingly.

Scripts with similar functionality may already exist. As these scripts have been created during the Python: Spoonfed tutorials as programming exercise, no novelty or originality is implied.

The scripts are available as open source, so you can use them for learning and adapt them to the next C4D version if necessary. They are not linked to serial numbers, user IDs or machine IDs. You can freely install them on any Cinema 4D installation that you own, now and in the future (as long as there are no API changes that technically prevent running this plugin).

If you have issues running the scripts, or ideas on how to improve them, feel free to leave a note.

LEGALESE

It is not allowed to pass on, repost, or publish these scripts in any way. It is especially not allowed to sell them. If you wish to recommend these scripts (or any other published here) to someone else, by all means do so with a link to this Patreon.

The user is responsible for installation and use of these plugins, and operates them at their own risk. I do not guarantee for the functionality, safety, or usability of these scripts, nor do I warrant their suitability for any specific purpose.

HINT FOR PATRONS

These scripts are identical to the ones we already discussed during the tutorials. I have just removed the explanatory console output and added icons.

By becoming a patron, you'll instantly unlock access to 113 exclusive posts
113
Writings
By becoming a patron, you'll instantly unlock access to 113 exclusive posts
113
Writings