I had to make a new tutorial. And it’s been a long time since I’ve done it, and also testing a new setup.
This is more or less for me to remember how to do simple scripts in c4d.
In this tutorial I show how I create simple scripts without knowing much about scripting in Python.
In the script we are picking your objects, and do different functions; like closing a spline, creating extrude nurb and changing some settings and so on. Remember Python is indent sensitive so be aware of that :)
objects = doc.GetActiveObjects(1) for obj in objects: obj[c4d.SPLINEOBJECT_CLOSED] = 1 c4d.EventAdd() # Extrude objects = doc.GetActiveObjects(1) c4d.CallCommand(5116) # Extrude objects = doc.GetActiveObjects(1) for obj in objects: obj[c4d.EXTRUDEOBJECT_EXTRUSIONOFFSET] = 0 c4d.EventAdd() # Remesh objects = doc.GetActiveObjects(1) c4d.CallCommand(1054750) # Remesh objects = doc.GetActiveObjects(1) for obj in objects: obj[c4d.ID_REMESH_POLYGONTARGET_MODE] = 0 obj[c4d.ID_REMESH_QUADREMESH_ADAPTIVENESS] = 0 c4d.EventAdd()