XrEventData(bpy_struct)

base class — bpy_struct

class bpy.types.XrEventData(bpy_struct)

XR Data for Window Manager Event

action

XR action name (default “”, readonly, never None)

Type:

str

action_set

XR action set name (default “”, readonly, never None)

Type:

str

bimanual

Whether bimanual interaction is occurring (default False, readonly)

Type:

bool

controller_location

Location of the action’s corresponding controller aim in world space (array of 3 items, in [-inf, inf], default (0.0, 0.0, 0.0), readonly)

Type:

mathutils.Vector

controller_location_other

Controller aim location of the other user path for bimanual actions (array of 3 items, in [-inf, inf], default (0.0, 0.0, 0.0), readonly)

Type:

mathutils.Vector

controller_rotation

Rotation of the action’s corresponding controller aim in world space (array of 4 items, in [-inf, inf], default (0.0, 0.0, 0.0, 0.0), readonly)

Type:

mathutils.Quaternion

controller_rotation_other

Controller aim rotation of the other user path for bimanual actions (array of 4 items, in [-inf, inf], default (0.0, 0.0, 0.0, 0.0), readonly)

Type:

mathutils.Quaternion

float_threshold

Input threshold for float/2D vector actions (in [-inf, inf], default 0.0, readonly)

Type:

float

state

XR action values corresponding to type (array of 2 items, in [-inf, inf], default (0.0, 0.0), readonly)

Type:

bpy_prop_array[float]

state_other

State of the other user path for bimanual actions (array of 2 items, in [-inf, inf], default (0.0, 0.0), readonly)

Type:

bpy_prop_array[float]

type

XR action type (default 'FLOAT', readonly)

  • FLOAT Float – Float action, representing either a digital or analog button.

  • VECTOR2D Vector2D – 2D float vector action, representing a thumbstick or trackpad.

  • POSE Pose – 3D pose action, representing a controller’s location and rotation.

  • VIBRATION Vibration – Haptic vibration output action, to be applied with a duration, frequency, and amplitude.

Type:

Literal[‘FLOAT’, ‘VECTOR2D’, ‘POSE’, ‘VIBRATION’]

user_path

User path of the action. E.g. “/user/hand/left” (default “”, readonly, never None)

Type:

str

user_path_other

Other user path, for bimanual actions. E.g. “/user/hand/right” (default “”, readonly, never None)

Type:

str

classmethod bl_rna_get_subclass(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (bpy.types.Struct | None) – The value to return when not found.

Returns:

The RNA type or default when not found.

Return type:

bpy.types.Struct

classmethod bl_rna_get_subclass_py(id, default=None, /)
Parameters:
  • id (str) – The RNA type identifier.

  • default (type | None) – The value to return when not found.

Returns:

The class or default when not found.

Return type:

type

Inherited Properties

Inherited Functions

References