2720d8bbf5 | ||
---|---|---|
.gitignore | ||
README.md | ||
deps_windows_py39.zip | ||
poetry.lock | ||
pyproject.toml | ||
send_to_speckle.py |
README.md
Cinema 4D 26: One-Click Send to Speckle
Introduction
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.
Installation
Windows
- Extract the dependencies from
deps_windows_py39.zip
- Copy the contents of the extracted
deps_windows_py39
folder into your%APPDATA%\Maxon\python\python39\libs
- Copy the
send_to_speckle.py
script 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)
Mac
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-stl
into~/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.py
script into your C4D scripts folder
Usage
- Load up the
send_to_speckle.py
script in the script tab - Paste in the url of the stream or branch you want to send to in the
STREAM_URL
field (defaults tomain
branch) - Optional: if you don't have Speckle Manager installed with a Speckle account added to it, you can provide an authentication token to
TOKEN
field
Note that C4D may become unresponsive for a minute or two until the operation is complete.