#include <py_element.h>
Represents a elements of any Python part in Cinema 4D.
Public Member Functions | |
MAXON_METHOD void | SetDisplayedName (const String name) |
MAXON_METHOD String | GetDisplayedName () const |
MAXON_METHOD String | GetPath (Opt< const PythonElementBaseRef & > stopAt={}) const |
MAXON_METHOD String | GetUUID () const |
MAXON_METHOD Result< String > | GetScript () |
MAXON_METHOD Result< void > | SetScript (const String &newScript) |
MAXON_METHOD Result< void > | Execute (const Bool debug) |
Private Member Functions | |
MAXON_INTERFACE (PythonElementBaseInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interfaces.python_element.base") | |
|
private |
MAXON_METHOD void SetDisplayedName | ( | const String | name | ) |
Define a custom Name, overriding the name retrieved by default. This does not change the actual name of the Python element, only the displayed one.
[in] | name | The new name. Pass an empty string if you want the default behavior for the Python element. |
MAXON_METHOD String GetDisplayedName | ( | ) | const |
Retrieve the name to use for displaying this element in the interface. This may not be the actual a name of the underlying Python element.
MAXON_METHOD String GetPath | ( | Opt< const PythonElementBaseRef & > | stopAt = {} | ) | const |
MAXON_METHOD String GetUUID | ( | ) | const |
MAXON_METHOD Result<String> GetScript | ( | ) |
Retrieve the python script from the underlying Python Element.
MAXON_METHOD Result<void> SetScript | ( | const String & | newScript | ) |
Defines the python script of the underlying Python Element.
[in] | newScript | The new python script. |
MAXON_METHOD Result<void> Execute | ( | const Bool | debug | ) |
Executes the current the underlying Python Element.
[in] | debug | true if the execution should be done wit python debugging enabled. |