Python Scripting in Cinema 4D
Taught by Michael Auerswald
- Course Number:
- Software Version:
- Original Run Date:
- July 2012
- 6 hours 43 minutes
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.
Class 1: Setting up your environment for Python developmentWe 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 objectWe 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 EffectorWe 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 EditoWe 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 ParticlesThinking 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 KeysTracks, Curves and Keys, how to read them and set them to create animation keys and transfer them between objects.
Class 7: CommandData pluginPlugins Part 1 - General setup and starting with a CommandData plugin.
Class 8: CommandData plugin and its GUIPlugins Part 2 - Finishing the CommandData plugin and its GUI.
Class 9: ool and Object pluginPlugins Part 3 - we're creating a Tool and Object plugin.
Class 10: External DataExternal 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.