PythonController(Controller)

base classes — bpy_struct, Controller

class bpy.types.PythonController(Controller)

Controller executing a python script

mode

Python script type (textblock or module - faster)

Type:enum in [‘SCRIPT’, ‘MODULE’], default ‘SCRIPT’
module

Module name and function to run, e.g. “someModule.main” (internal texts and external python files can be used)

Type:string, default “”, (never None)
text

Text data-block with the python script

Type:Text
use_debug

Continuously reload the module from disk for editing external modules without restarting

Type:boolean, default False
classmethod bl_rna_get_subclass(id, default=None)
Parameters:id (string) – The RNA type identifier.
Returns:The RNA type or default when not found.
Return type:bpy.types.Struct subclass
classmethod bl_rna_get_subclass_py(id, default=None)
Parameters:id (string) – The RNA type identifier.
Returns:The class or default when not found.
Return type:type

Inherited Properties

Inherited Functions