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 “”
text

Text datablock with the python script

Type :Text
use_debug

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

Type :boolean, default False

Inherited Properties

Inherited Functions

Previous topic

PythonConstraint(Constraint)

Next topic

RadarSensor(Sensor)