unreal.LeapOptions

class unreal.LeapOptions(mode=LeapMode.LEAP_MODE_DESKTOP, tracking_fidelity=LeapTrackingFidelity.LEAP_NORMAL, leap_service_log_level=LeapServiceLogLevel.LEAP_LOG_INFO, use_time_warp=True, use_interpolation=True, transform_origin_to_hmd=True, timewarp_offset=5500.0, timewarp_factor=1.0, hand_interp_factor=0.0, finger_interp_factor=0.0, hmd_position_offset=[9.0, 0.0, 0.0], hmd_rotation_offset=[0.0, 0.0, 0.0])

Bases: unreal.StructBase

Leap Options

C++ Source:

  • Plugin: LeapMotion
  • Module: LeapMotion
  • File: LeapMotionData.h

Editor Properties: (see get_editor_property/set_editor_property)

  • finger_interp_factor (float): [Read-Write] Number of frames we should predict forward (positive) or back (negative) from right now for fingers
  • hand_interp_factor (float): [Read-Write] Number of frames we should predict forward (positive) or back (negative) from right now for hands
  • hmd_position_offset (Vector): [Read-Write] Fixed offset in leap space for all tracking data. Useful for setting Leap->HMD real world offset
  • hmd_rotation_offset (Rotator): [Read-Write] Fixed offset in leap space for all tracking data. Useful for setting Leap->HMD real world offset
  • leap_service_log_level (LeapServiceLogLevel): [Read-Write] Verbosity of additional log updates from the leap service
  • mode (LeapMode): [Read-Write] Optimize for desktop facing upward or VR facing outward?
  • timewarp_factor (float): [Read-Write] Linear factor, useful for inverting timewarp effects for certain platforms (e.g. Oculus)
  • timewarp_offset (float): [Read-Write] Timewarp offset sampling in microseconds. The higher, the further back in time.
  • tracking_fidelity (LeapTrackingFidelity): [Read-Write] Set your tracking fidelity from low latency to smooth. If not set to custom, some of the low level settings may be overwritten
  • transform_origin_to_hmd (bool): [Read-Write] Should all leap data be transported to HMD space?
  • use_interpolation (bool): [Read-Write] Whether leap should use frame interpolation for smooth tracking
  • use_time_warp (bool): [Read-Write] Should leap use Temporal warping to align HMD rotation with leap samples
finger_interp_factor

(float) – [Read-Write] Number of frames we should predict forward (positive) or back (negative) from right now for fingers

hand_interp_factor

(float) – [Read-Write] Number of frames we should predict forward (positive) or back (negative) from right now for hands

hmd_position_offset

(Vector) – [Read-Write] Fixed offset in leap space for all tracking data. Useful for setting Leap->HMD real world offset

hmd_rotation_offset

(Rotator) – [Read-Write] Fixed offset in leap space for all tracking data. Useful for setting Leap->HMD real world offset

leap_service_log_level

(LeapServiceLogLevel) – [Read-Write] Verbosity of additional log updates from the leap service

mode

(LeapMode) – [Read-Write] Optimize for desktop facing upward or VR facing outward?

timewarp_factor

(float) – [Read-Write] Linear factor, useful for inverting timewarp effects for certain platforms (e.g. Oculus)

timewarp_offset

(float) – [Read-Write] Timewarp offset sampling in microseconds. The higher, the further back in time.

tracking_fidelity

(LeapTrackingFidelity) – [Read-Write] Set your tracking fidelity from low latency to smooth. If not set to custom, some of the low level settings may be overwritten

transform_origin_to_hmd

(bool) – [Read-Write] Should all leap data be transported to HMD space?

use_interpolation

(bool) – [Read-Write] Whether leap should use frame interpolation for smooth tracking

use_time_warp

(bool) – [Read-Write] Should leap use Temporal warping to align HMD rotation with leap samples