XrActionMapItem(bpy_struct)

base class — bpy_struct

class bpy.types.XrActionMapItem(bpy_struct)
bimanual

The action depends on the states/poses of both user paths (default False)

Type:

bool

bindings

Bindings for the action map item, mapping the action to an XR input (default None, readonly)

Type:

XrActionMapBindings[XrActionMapBinding]

haptic_amplitude

Intensity of the haptic vibration, ranging from 0.0 to 1.0 (in [0, 1], default 0.0)

Type:

float

haptic_duration

Haptic duration in seconds. 0.0 is the minimum supported duration. (in [0, inf], default 0.0)

Type:

float

haptic_frequency

Frequency of the haptic vibration in hertz. 0.0 specifies the OpenXR runtime’s default frequency. (in [0, inf], default 0.0)

Type:

float

haptic_match_user_paths

Apply haptics to the same user paths for the haptic action and this action (default False)

Type:

bool

haptic_mode

Haptic application mode (default 'PRESS')

  • PRESS Press – Apply haptics on button press.

  • RELEASE Release – Apply haptics on button release.

  • PRESS_RELEASE Press Release – Apply haptics on button press and release.

  • REPEAT Repeat – Apply haptics repeatedly for the duration of the button press.

Type:

Literal[‘PRESS’, ‘RELEASE’, ‘PRESS_RELEASE’, ‘REPEAT’]

haptic_name

Name of the haptic action to apply when executing this action (default “”, never None)

Type:

str

name

Name of the action map item (default “”, never None)

Type:

str

op

Identifier of operator to call on action event (default “”, never None)

Type:

str

op_mode

Operator execution mode (default 'PRESS')

  • PRESS Press – Execute operator on button press (non-modal operators only).

  • RELEASE Release – Execute operator on button release (non-modal operators only).

  • MODAL Modal – Use modal execution (modal operators only).

Type:

Literal[‘PRESS’, ‘RELEASE’, ‘MODAL’]

op_name

Name of operator (translated) to call on action event (default “”, readonly, never None)

Type:

str

op_properties

Properties to set when the operator is called (readonly)

Type:

OperatorProperties

pose_is_controller_aim

The action poses will be used for the VR controller aims (default False)

Type:

bool

pose_is_controller_grip

The action poses will be used for the VR controller grips (default False)

Type:

bool

selected_binding

Currently selected binding (in [-32768, 32767], default 0)

Type:

int

type

Action type (default 'FLOAT')

  • 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_paths

OpenXR user paths (default None, readonly)

Type:

XrUserPaths[XrUserPath]

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