Python Scripting in Cinema 4D

Taught by Michael Auerswald

Course Number:
C4D208
Software Version:
R13 
Original Run Date:
July 2012 
Duration:
6 hours 43 minutes 
3D
mograph
pipeline
In this course we will cover the various ways that Python has been integrated into Cinema 4D since the release of R12 and R13. Professor Michael Auerswald will look at its features from both an artist's and a TD’s point of view, using hands-on examples. Those that will make use of the Python Generator object, Python effectors, Xpresso nodes and Expression Editor. We'll also look at more advanced topics like writing your own plugins.

Once you get used to writing your own scripts, you will be able to build your own tools, automate those annoying repetetive tasks and simply make your work much more productive.

Of course, since this is a Python based course, it will involve some programming. Python itself is a rather easy language to learn so even if you are not familiar with it yet, as long as you have some basic programming knowledge, you should be able to follow along just fine. Plus, since Python is now the de facto standard for scripting languages in the vfx industry, this will definitely be worth the effort.

We will be working with the release, R13 Studio, in this course however, most things will work the same in the previous R12 release. As of June 2012, Maxon has released a Student Version of R13 that has most of the Studio version’s features, so it should work just fine for this course as well.

Michael Auerswald is a freelance 3D artist and TD from Berlin, Germany. He’s a regular at 908video and also works as a TD for Pixomondo. He studied computer sciences and character animation, but moved into the motion graphics and vfx business instead. His tool of choice is Cinema 4D, but he also has a secret love for Houdini. Oh, and he also has a law degree from way back, but don’t hold that against him.
 
Python Scripting in Cinema 4D
Watch our overview of the course

Class Listing

Class 1: Setting up your environment for Python development

We deal with setting up your environment for Python development, and how and where to find information on the SDK. It also contains an overview of Python in Cinema 4D. The second half is all about creating the first Python scripts to modify and animate objects, through a simple user interface. The files contain the fully documented code of that script.

Class 2: Python Generator object

We use the Python Generator object to generate new objects from scratch and modify their points. We'll also learn how to convert primitives to polygon objects and how to send modeling commands to Cinema 4D.

Class 3: MoGraph module's Python Effector

We check out the two modes of the MoGraph module's Python Effector and how to use them to modify the attributes of specific clones.

Class 4: Python scripts straight from the Expression Edito

We will be running some Python scripts straight from the Expression Editor and will get an idea of how to use Python for pipeline purposes, for example to send data to a render farm.

Class 5: Thinking Particles

Thinking Particles. We'll create a customer emitter in Python, then use Python again within an Xpresso script to dynamically modify particles inside a simulation.

Class 6: Tracks, Curves and Keys

Tracks, Curves and Keys, how to read them and set them to create animation keys and transfer them between objects.

Class 7: CommandData plugin

Plugins Part 1 - General setup and starting with a CommandData plugin.

Class 8: CommandData plugin and its GUI

Plugins Part 2 - Finishing the CommandData plugin and its GUI.

Class 9: ool and Object plugin

Plugins Part 3 - we're creating a Tool and Object plugin.

Class 10: External Data

External Data - part one deals with reading data from an XML file and passing it on to an object, part two will deal with live data, from a different application, read over the network using the OSC protocol.