#include <code_exchange.h>
Manages communication to exchange code from Cinema 4D to IDE.
Public Member Functions | |
MAXON_METHOD Result< void > | Start () |
MAXON_METHOD Result< void > | Stop () |
MAXON_METHOD Result< void > | SendScriptToIDE (const PythonElementScriptRef &script) |
MAXON_METHOD Result< void > | SendConsoleOutput (const String &content) |
MAXON_METHOD InternedId | GetLanguage () const |
MAXON_METHOD String | GetName () const |
Private Member Functions | |
MAXON_INTERFACE (CodeExchangeInterface, MAXON_REFERENCE_NORMAL, "net.maxon.python.interface.codeexchange") | |
|
private |
MAXON_METHOD Result<void> Start | ( | ) |
Called when the Code Exchange is enabled in the preference or during the startup of Cinema 4D.
MAXON_METHOD Result<void> Stop | ( | ) |
Called when the Code Exchange is disabled in the preference or during the ending of Cinema 4D.
MAXON_METHOD Result<void> SendScriptToIDE | ( | const PythonElementScriptRef & | script | ) |
Send the given Python Script to all IDE
[in] | script | The Python script to send |
MAXON_METHOD Result<void> SendConsoleOutput | ( | const String & | content | ) |
Send the Python Console to all IDE
[in] | content | The new line in the Python logger |
MAXON_METHOD InternedId GetLanguage | ( | ) | const |
Defines which language the code exchange should be used
MAXON_METHOD String GetName | ( | ) | const |
Names of the Code Exchange, this will be used in the Cinema 4D preference under the extension entry.