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) (default 'SCRIPT')

Type:

Literal[‘SCRIPT’, ‘MODULE’]

module

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

Type:

str

text

Text data-block with the python script

Type:

Text

use_debug

Continuously reload the module from disk for editing external modules without restarting (default False)

Type:

bool

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (bpy.types.Struct | None) – The value to return when not found.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (type | None) – The value to return when not found.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions