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, duration hours minute second in high quality that is uploaded to the channel Jørgen Håland 09 August 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 327 times and liked it 12 visitors.