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
- type (enum in ['LOGIC_AND', 'LOGIC_OR', 'LOGIC_NAND', 'LOGIC_NOR', 'LOGIC_XOR', 'LOGIC_XNOR', 'EXPRESSION', 'PYTHON'], (optional)) –
-
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
-
bpy.ops.logic.
links_cut
(path=None, cursor=9)¶ Remove logic brick connections
Parameters: - path (
bpy_prop_collection
ofOperatorMousePath
, (optional)) – Path - cursor (int in [0, inf], (optional)) – Cursor
- path (
-
bpy.ops.logic.
properties
()¶ Toggle the properties region visibility
-
bpy.ops.logic.
python_component_create
(component_name="module.Component")¶ Create a python component to the selected object
Parameters: component_name (string, (never None)) – Component, The component class name with module (module.ComponentName)
-
bpy.ops.logic.
python_component_register
(component_name="module.Component")¶ Add a python component to the selected object
Parameters: component_name (string, (never None)) – Component, The component class name with module (module.ComponentName)
-
bpy.ops.logic.
python_component_reload
(index=0)¶ Reload Component
Parameters: index (int in [0, inf], (optional)) – Index, Component index to reload
-
bpy.ops.logic.
python_component_remove
(index=0)¶ Remove Component
Parameters: index (int in [0, inf], (optional)) – Index, Component index to remove
-
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