Controller(bpy_struct)

base class — bpy_struct

subclasses — AndController, ExpressionController, NandController, NorController, OrController, PythonController, XnorController, XorController

class bpy.types.Controller(bpy_struct)

Game engine logic brick to process events, connecting sensors to actuators

active

Set the active state of the controller (default True)

Type:

bool

actuators

The list containing the actuators connected to the controller (default None, readonly)

Type:

bpy_prop_collection[Actuator]

name

(default “”, never None)

Type:

str

show_expanded

Set controller expanded in the user interface (default False)

Type:

bool

states

Set Controller state index (1 to 30) (in [1, 30], default 0)

Type:

int

type

(default 'LOGIC_AND')

Type:

Literal[Controller Type Items]

use_priority

Mark controller for execution before all non-marked controllers (good for startup scripts) (default False)

Type:

bool

Link the controller with a sensor/actuator

Parameters:
  • sensor (Sensor) – Sensor to link the controller to (optional)

  • actuator (Actuator) – Actuator to link the controller to (optional)

Unlink the controller from a sensor/actuator

Parameters:
  • sensor (Sensor) – Sensor to unlink the controller from (optional)

  • actuator (Actuator) – Actuator to unlink the controller from (optional)

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:

id (str) – The RNA type identifier.

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.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References