MouseSensor(Sensor)

base classes — bpy_struct, Sensor

class bpy.types.MouseSensor(Sensor)

Sensor to detect mouse events

material

Only look for objects with this material (blank = all objects)

Type:string, default “”, (never None)
mouse_event

Type of event this mouse sensor should trigger on

Type:enum in [‘LEFTCLICK’, ‘MIDDLECLICK’, ‘RIGHTCLICK’, ‘WHEELUP’, ‘WHEELDOWN’, ‘MOVEMENT’, ‘MOUSEOVER’, ‘MOUSEOVERANY’], default ‘LEFTCLICK’
property

Only look for objects with this property (blank = all objects)

Type:string, default “”, (never None)
use_material

Toggle collision on material or property

  • PROPERTY Property, Use a material for ray intersections.
  • MATERIAL Material, Use a property for ray intersections.
Type:enum in [‘PROPERTY’, ‘MATERIAL’], default ‘PROPERTY’
use_pulse

Moving the mouse over a different object generates a pulse

Type:boolean, default False
use_x_ray

Toggle X-Ray option (see through objects that don’t have the property)

Type:boolean, default False

Inherited Properties

Inherited Functions