Controller(bpy_struct)

base class — bpy_struct

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

class bpy.types.Controller(bpy_struct)

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

name
Type :string, default “”
show_expanded

Set controller expanded in the user interface

Type :boolean, default False
states

Set Controller state index (1 to 30)

Type :int in [1, 30], default 0
type
Type :enum in [‘LOGIC_AND’, ‘LOGIC_OR’, ‘LOGIC_NAND’, ‘LOGIC_NOR’, ‘LOGIC_XOR’, ‘LOGIC_XNOR’, ‘EXPRESSION’, ‘PYTHON’], default ‘LOGIC_AND’
use_priority

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

Type :boolean, default False

Link the controller with a sensor/actuator.

Parameters:
  • sensor (Sensor, (optional)) – Sensor to link the controller to.
  • actuator (Actuator, (optional)) – Actuator to link the controller to.

Unlink the controller from a sensor/actuator.

Parameters:
  • sensor (Sensor, (optional)) – Sensor to unlink the controller from.
  • actuator (Actuator, (optional)) – Actuator to unlink the controller from.

Inherited Properties

Inherited Functions

References

Previous topic

ControlFluidSettings(FluidSettings)

Next topic

CopyLocationConstraint(Constraint)