Logic Operators

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

Add a actuator to the active object

Parameters:
  • type (enum in [], (optional)) – Type, Type of actuator to add
  • name (string, (optional)) – Name, Name of the Actuator to add
  • object (string, (optional)) – 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)) – Actuator, Name of the actuator to edit
  • object (string, (optional)) – 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 a actuator from the active object

Parameters:
  • actuator (string, (optional)) – Actuator, Name of the actuator to edit
  • object (string, (optional)) – 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
  • name (string, (optional)) – Name, Name of the Controller to add
  • object (string, (optional)) – 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)) – Controller, Name of the controller to edit
  • object (string, (optional)) – 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)) – Controller, Name of the controller to edit
  • object (string, (optional)) – 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 display properties panel

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)) – Name, Name of the Sensor to add
  • object (string, (optional)) – 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)) – Sensor, Name of the sensor to edit
  • object (string, (optional)) – 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)) – Sensor, Name of the sensor to edit
  • object (string, (optional)) – Object, Name of the object the sensor belongs to

Previous topic

Lattice Operators

Next topic

Marker Operators