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
Type: boolean, default False
-
actuators¶ The list containing the actuators connected to the controller
Type: bpy_prop_collectionofActuator, (readonly)
-
name¶ Type: string, default “”, (never None)
-
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¶ LOGIC_ANDAnd, Logic And.LOGIC_OROr, Logic Or.LOGIC_NANDNand, Logic Nand.LOGIC_NORNor, Logic Nor.LOGIC_XORXor, Logic Xor.LOGIC_XNORXnor, Logic Xnor.EXPRESSIONExpression.PYTHONPython.
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(sensor=None, actuator=None)¶ Link the controller with a sensor/actuator
Parameters:
-
unlink(sensor=None, actuator=None)¶ Unlink the controller from a sensor/actuator
Parameters:
-
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.Structsubclass
-
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
References