Remote Playback - How to Setup a Trigger via Python Script (DOC-5045)

This document will take you through the steps of setting up a trigger for remote file playback in the Hand Engine software via Command Prompt.

Requirements

  • StretchSense HandEngine: Log in to your account page on http://www.stretchsense.com/my-account   or contact our Support team on StretchSense Help Center

  • Operating System: Windows 10

  • Shogun Live API installed

  • Python installed

    Python Installation: https://www.python.org/downloads/

    • 64 bit if 64bit windows

    • 32 bit if 32bit windows

      Note: Even if you have Python installed from the Microsoft App store you will still need to install Python from the website above

      IMPORTANT: Tick the checkbox for adding Python 3.9 to PATH

  • Basic python knowledge

  • Python Start/Stop/Pause file playback scripts - Download Link

Setting up the trigger for remote file playback in Hand Engine

  1. Launch Hand Engine, load the CSV raw data files, and load your calibration.

     

     

  2. Open Command Prompt, type cd, and paste the file location where the scripts are saved.

  3. Type in the following command line and hit Enter to start recording in Hand Engine. If successful, you will see the hand animation playing.

    python start_play.py --port=3000 --host="127.0.0.1"

    NOTE: The port and host can be changed to where Hand Engine is running. If you don’t specify the host and port then the default (127.0.0.1 & 3000) will be used.

  4. To stop or pause, type the following command line and hit Enter.

    Stop: python stop_play.py --port=3000 --host="127.0.0.1"
    Pause: python pause_play.py --port=3000 --host="127.0.0.1"

Disclaimer, Intellectual Property, and Licensing

Revision

Date

Notes

2

2021.10.04

Updated image for HE 1.4

1

2021.08.31

Initial version.