The combination of Eclipse and PyDev makes an excellent development environment for coding Cinema 4D python plugins.
Sadly, there was this one – major – feature of PyDev I just couldn’t get to work… completions.
And that was a shame, because this is probably the most awesome feature of PyDev and speeds things up a lot.
Now it’s finally usable! (well… mostly)
Smart PolyChart is a simple CommandData plugin which draws a neat bar chart from the polygon counts of all polygon objects in a scene.
You can download it here – the source is documented.
The part for users:
Just drag it into your /Plugins folder and open it from the ‘Plugins’ menu. The ‘Update’ button refreshes the view, a click on a column will select the corresponding object so you can optimize or remove it to lower the scenes polygon count.
So far we already covered IDE-setup and debugging – new let’s go and actually build something!
This is meant to be a simple template of the most common plugin type in Cinema 4D – the CommandData plugin.
Smart HN-Options is a very simple tool that allows to globally change the parameters of every HyperNURBS object within the scene.
Grab the plugin and source! (Eclipse project files included)
When hunting down glitches, the debugger is the coder’s weapon of choice…
In the last post about coding advanced Python plugins, this vital part was skipped as Cinema 4D’s Python interpreter doesn’t support it.
But fear not – you don’t have to write countless ‘prints’ or fiddle with python’s inspect module just to fix a simple fence post error.
Stepping through breakpoints and browsing your plugins scope… – all this is possible with the PyDev remote debugger.
It’s been a long time… how have you been?
This is going to be another Python/Cinema 4D related post.
While python is great for quickly scripting workflow optimizing tools, prototype stuff or write generators and tags, is it suited for big, complex plugin development?
Maxon has just released the R12 version of Cinema 4D, which includes Python – so let’s dig into Python plugin development!
We are going to build a ray tracer… with Python! Watch a rendered video.
Update: All Python scripts in this blog have been updated to work with the R12.
There are those popular structures we all know and love because they simply look fascinating from every angle – like the Sierpinski triangle, the Pythagoras tree or the Menger sponge.
Generative geometry is one more proof that math is beautiful no matter how basic.
Recently I stumbled upon a new pattern that is also phenomenally simple but produces rather complex shapes – the “Binary Kite”.
I haven´t written about Py4D for quite a while now…
In the meantime, Maxon has first announced a cooperation with – and now the acquisition of Sebastian Rath´s praised python implementation for Cinema4D.
So finally – Cinema4D meets Python!
Let´s celebrate with some cool experiments!
Strange attractors are fractals that emerge at certain, sensitive parameters within the three-or more dimensional phase space.
They are are researched since the early 70s and strongly related to the chaos theory as they allow to watch the transition from chaos to order/geometry.
Good things first: see the result and try the chaotic attractor finder!
Sebastian Rath´s PY4D is a new, alternative way to script with or to code plugins for Cinema4D – without COFFE or C++ – but in Python.
The current beta (v0.9.0001) already makes a fine impression and proves itself easy to get started with.
This video shows a little script that was adapted in a twinkling and controls the particles of a TP-Storm to behave after the three flocking boids rules.
Don has rendered a much prettyer version of the dummy above.
You can download the C4D-scene here.
Update: The file has been updated to work with the R12 version of Cinema 4D.