This script allows you to send a Cinema4D model to Speckle with one click! Simply paste in a URL, execute the script, and away you go 🚀
In order to achieve this, the script will (1) export your entire model to an STL file, (2) convert that file to Speckle, and (3) send and commit the converted mesh.
It is recommended that you have Speckle Manager installed before using this script, however you can also use a token to authenticate yourself instead.
- Extract the dependencies from
deps_windows_py39.zip - Copy the contents of the extracted
deps_windows_py39folder into your%APPDATA%\Maxon\python\python39\libs
- Copy the
send_to_speckle.pyscript into your%APPDATA%\Maxon\Maxon Cinema 4D R26_7DC20B77\library\scripts(or load it in from wherever you like to save your Cinema4D python scripts)
I was not able to get this on an M1 Pro mac, but feel free to try this manual installation out as you may have better luck.
- Using Python 3.9,
pip install specklepy numpy-stlinto~/Library/Preferences/MAXON/python39/libs(NOTE: it is critical that you use Python 3.9 as the major version needs to match the one bundled with Cinema4D) - Copy the
send_to_speckle.pyscript into your C4D scripts folder
- Load up the
send_to_speckle.pyscript in the script tab - Paste in the url of the stream or branch you want to send to in the
STREAM_URLfield (defaults tomainbranch) - Optional: if you don't have Speckle Manager installed with a Speckle account added to it, you can provide an authentication token to
TOKENfield
Note that C4D may become unresponsive for a minute or two until the operation is complete.