diff options
author | Peter Kim <pk15950@gmail.com> | 2022-04-04 11:04:04 +0300 |
---|---|---|
committer | Peter Kim <pk15950@gmail.com> | 2022-04-04 11:04:04 +0300 |
commit | 6528492f250ed1c9b030b480f55886667a55fdc4 (patch) | |
tree | 3468ea30155c401b5890ff55bcfd4be950c6f353 /viewport_vr_preview/action_map_io.py | |
parent | 0d3a8981f7e6bb3d9bd2e6483607421c663463c4 (diff) |
VR: Add dedicated handling for VR trackerstemp-xr-tracker
Also refactor the "blender_default_tracker" action map to have separate
pose actions for each tracker role (instead of a single pose action with
subaction paths for each role) and add controller pose actions.
Diffstat (limited to 'viewport_vr_preview/action_map_io.py')
-rw-r--r-- | viewport_vr_preview/action_map_io.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/viewport_vr_preview/action_map_io.py b/viewport_vr_preview/action_map_io.py index 92b5b676..bd0e6d11 100644 --- a/viewport_vr_preview/action_map_io.py +++ b/viewport_vr_preview/action_map_io.py @@ -63,6 +63,7 @@ def ami_args_as_data(ami): elif ami.type == 'POSE': s.append(f"\"pose_is_controller_grip\": '{ami.pose_is_controller_grip}'") s.append(f"\"pose_is_controller_aim\": '{ami.pose_is_controller_aim}'") + s.append(f"\"pose_is_tracker\": '{ami.pose_is_tracker}'") return "{" + ", ".join(s) + "}" @@ -86,6 +87,7 @@ def ami_data_from_args(ami, args): elif ami.type == 'POSE': ami.pose_is_controller_grip = True if (args["pose_is_controller_grip"] == 'True') else False ami.pose_is_controller_aim = True if (args["pose_is_controller_aim"] == 'True') else False + ami.pose_is_tracker = True if (args["pose_is_tracker"] == 'True') else False def _ami_properties_to_lines_recursive(level, properties, lines): |