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)
- 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')PRESSPress – Apply haptics on button press.RELEASERelease – Apply haptics on button release.PRESS_RELEASEPress Release – Apply haptics on button press and release.REPEATRepeat – 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')PRESSPress – Execute operator on button press (non-modal operators only).RELEASERelease – Execute operator on button release (non-modal operators only).MODALModal – 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:
- 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')FLOATFloat – Float action, representing either a digital or analog button.VECTOR2DVector2D – 2D float vector action, representing a thumbstick or trackpad.POSEPose – 3D pose action, representing a controller’s location and rotation.VIBRATIONVibration – 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:
- 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: