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 nurbe 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()
Watch video Create your own simple shortcuts in Cinema 4d online without registration, duration hours minute second in high quality. This video was added by user Jørgen Håland 09 August 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 327 once and liked it 12 people.