#include <pythontools.h>
An interface to execute Python scripts. It executes code like Script Manager scripts so "doc" and "op" are based on the given BaseDocument.
Static Public Member Functions | |
static MAXON_METHOD Result< void > | ExecuteCode (const String &scriptName, const String &sourceCode, BaseDocument *doc, const String &path) |
static MAXON_METHOD Result< void > | ExecuteScript (const Url &script, BaseDocument *doc) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (PythonToolsInterface, MAXON_REFERENCE_NONE, "net.sdktools.interfaces.pythontools") | |
|
private |
|
static |
Executes the given Python code.
[in] | scriptName | The script name. |
[in] | sourceCode | The Python source code. |
[in] | doc | The BaseDocument to set "doc" and "op". |
[in] | path | The path for "__file__". |
|
static |
Loads and executes the given Python script.
[in] | script | The Url of a Python script. |
[in] | doc | The BaseDocument to set "doc" and "op". |