how to use the commands from Octane/Redshift's symbols.h
-
As a beginner, how to use the commands from Octane/Redshift's symbols.h when writing C4D scripts?
In the image above, those are enumerated commands from symbols.h, but I don't know how to use them in scripts.Are there any learning resources available about this topic?
-
Hey @RTF,
Thank you for reaching out to us. There is no fully automatic way to do this, as it is up to third parties to expose their APIs to Python. When a vendor does not offer a Python API, you can do two things:
- Simply define the symbols yourself in your Python code, they are just integer values after all.
- With mxutils.ImportSymbols you can import symbols from a resource, e.g., a
symbols.h
file. It is (a part of) the very mechanism we use to automatically expose the symbols from the native Cinema 4D C++ API to the Python API.
Cheers,
Ferdinand -
F ferdinand forked this topic