Logic Operators

bpy.ops.logic.actuator_add(type='', name="", object="")

Add an actuator to the active object

Parameters:
  • type (enum in [], (optional)) – Type, Type of actuator to add
  • name (string, (optional, never None)) – Name, Name of the Actuator to add
  • object (string, (optional, never None)) – Object, Name of the Object to add the Actuator to
bpy.ops.logic.actuator_move(actuator="", object="", direction='UP')

Move Actuator

Parameters:
  • actuator (string, (optional, never None)) – Actuator, Name of the actuator to edit
  • object (string, (optional, never None)) – Object, Name of the object the actuator belongs to
  • direction (enum in ['UP', 'DOWN'], (optional)) – Direction, Move Up or Down
bpy.ops.logic.actuator_remove(actuator="", object="")

Remove an actuator from the active object

Parameters:
  • actuator (string, (optional, never None)) – Actuator, Name of the actuator to edit
  • object (string, (optional, never None)) – Object, Name of the object the actuator belongs to
bpy.ops.logic.controller_add(type='LOGIC_AND', name="", object="")

Add a controller to the active object

Parameters:
  • type (enum in ['LOGIC_AND', 'LOGIC_OR', 'LOGIC_NAND', 'LOGIC_NOR', 'LOGIC_XOR', 'LOGIC_XNOR', 'EXPRESSION', 'PYTHON'], (optional)) –

    Type, Type of controller to add

    • LOGIC_AND And, Logic And.
    • LOGIC_OR Or, Logic Or.
    • LOGIC_NAND Nand, Logic Nand.
    • LOGIC_NOR Nor, Logic Nor.
    • LOGIC_XOR Xor, Logic Xor.
    • LOGIC_XNOR Xnor, Logic Xnor.
    • EXPRESSION Expression.
    • PYTHON Python.
  • name (string, (optional, never None)) – Name, Name of the Controller to add
  • object (string, (optional, never None)) – Object, Name of the Object to add the Controller to
bpy.ops.logic.controller_move(controller="", object="", direction='UP')

Move Controller

Parameters:
  • controller (string, (optional, never None)) – Controller, Name of the controller to edit
  • object (string, (optional, never None)) – Object, Name of the object the controller belongs to
  • direction (enum in ['UP', 'DOWN'], (optional)) – Direction, Move Up or Down
bpy.ops.logic.controller_remove(controller="", object="")

Remove a controller from the active object

Parameters:
  • controller (string, (optional, never None)) – Controller, Name of the controller to edit
  • object (string, (optional, never None)) – Object, Name of the object the controller belongs to

Remove logic brick connections

Parameters:
  • path (bpy_prop_collection of OperatorMousePath, (optional)) – path
  • cursor (int in [0, inf], (optional)) – Cursor
bpy.ops.logic.properties()

Toggle the properties region visibility

bpy.ops.logic.sensor_add(type='', name="", object="")

Add a sensor to the active object

Parameters:
  • type (enum in [], (optional)) – Type, Type of sensor to add
  • name (string, (optional, never None)) – Name, Name of the Sensor to add
  • object (string, (optional, never None)) – Object, Name of the Object to add the Sensor to
bpy.ops.logic.sensor_move(sensor="", object="", direction='UP')

Move Sensor

Parameters:
  • sensor (string, (optional, never None)) – Sensor, Name of the sensor to edit
  • object (string, (optional, never None)) – Object, Name of the object the sensor belongs to
  • direction (enum in ['UP', 'DOWN'], (optional)) – Direction, Move Up or Down
bpy.ops.logic.sensor_remove(sensor="", object="")

Remove a sensor from the active object

Parameters:
  • sensor (string, (optional, never None)) – Sensor, Name of the sensor to edit
  • object (string, (optional, never None)) – Object, Name of the object the sensor belongs to
bpy.ops.logic.view_all()

Resize view so you can see all logic bricks