|
Blender V5.3
|
Go to the source code of this file.
Classes | |
| struct | blender::BPy_RunErrInfo |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Functions | |
Run File/Text as a Script | |
| |
| bool | blender::BPY_run_filepath (bContext *C, const char *filepath, ReportList *reports) ATTR_NONNULL(1 |
| bool bool | blender::BPY_run_text (bContext *C, Text *text, ReportList *reports, bool do_jump) ATTR_NONNULL(1 |
Run a String as a Script | |
| |
| bool | blender::BPY_string_compile_check (const char *expr) |
| bool | blender::BPY_run_string_exec (bContext *C, const char *imports[], const char *expr) |
| bool | blender::BPY_run_string_eval (bContext *C, const char *imports[], const char *expr) |
| bool | blender::BPY_run_string_exec_with_locals (bContext *C, StringRefNull script, IDProperty &locals) |
| std::optional< IDProperty * > | blender::BPY_run_string_exec_with_locals_return_idprop (bContext *C, StringRefNull script, IDProperty &locals, StringRefNull result_var_name) |
Run a String as a Script & Return the Result | |
Convenience functions for executing a script and returning the result as an expected type. | |
| bool | blender::BPY_run_string_as_number (bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, double *r_value) ATTR_NONNULL(1 |
| bool bool | blender::BPY_run_string_as_intptr (bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, intptr_t *r_value) ATTR_NONNULL(1 |
| bool bool bool | blender::BPY_run_string_as_string_and_len (bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, char **r_value, size_t *r_value_len) ATTR_NONNULL(1 |
| bool bool bool bool | blender::BPY_run_string_as_string (bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, char **r_value) ATTR_NONNULL(1 |
| bool bool bool bool bool | blender::BPY_run_string_as_string_and_len_or_none (bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, char **r_value, size_t *r_value_len) ATTR_NONNULL(1 |
| bool bool bool bool bool bool | blender::BPY_run_string_as_string_or_none (bContext *C, const char *imports[], const char *expr, BPy_RunErrInfo *err_info, char **r_value) ATTR_NONNULL(1 |
imports: This is simply supported for convenience since imports can make constructing strings more cumbersome as otherwise small expressions become multi-line code-blocks. Optional (ignored when NULL), otherwise this is a NULL terminated array of module names.
Failure to import any modules prevents any further execution.
Definition in file BPY_extern_run.hh.