On 21/07/2015 at 06:05, xxxxxxxx wrote:
I'm experimenting with python and c4d for the last few days, it's incredibly fun. However, I beleive I'm missing out some of the necessary basics so I can't progress more. I also can't find any solid for pre-made examples to learn by looking at and understanding others' code. The only website I've been digging so far was the official py SDK from Maxon and at the moment it does not help me understand some of my main problems with the python pipeline in C4D.
My question is about "deformers" in general. How to create them in cinema4D using python?
Let me share my experience so far:
I've been using mograph python effector in point and polygon mode to crete deformers, and it works to some extent where I only edit/modify existing clones/points/polygones but something like a bevel efector where new polygons are created, is not seem possible with the python mograph effector (if possible, please let me know how!).
The python tag works every frame but does not create nondestructive results such as the c4d deformers (again, something like bend, explode or bevel) - therefore it's not the best option for an effector-like use.
Executing a script works only when executed, so it's definitely not the best option for creating a deformer.
Python generator is good for generating stuff from scratch but again not the best thing tou use for deformer use.
So at this point I'm out of options. I believe this should be doable, SDK gives access to a lot of things, I just can't see the bridge between the python effector and polygons/points of the object it's effecting, so I can't make polygon/point level manipulation to the object (in terms of creating new polygons or points) which makes it impossible to create a bevel-like effector/deformer.
I hope my question/problem is clear! Looking for answers/ideas.
Thanks.