Hi.
I need to record and reproduce movements with Leap Motion to measure the evolution of patients who have suffered stroke.
I'm using aframe-leap-hands as a Leap Motion controller and would like to use leapjs-playback to record and play back the moves.
I use aframe-leap-hands of the following form:
<a-scene>
<!-- Player -->
<a-entity camera="near: 0.01" look-controls>
<a-entity leap-hand="hand: left"></a-entity>
<a-entity leap-hand="hand: right"></a-entity>
</a-entity>
<!-- Terrain-->
<a-grid></a-grid>
<!-- Light-->
<a-light type="ambient" color="#ccc"></a-light>
<a-light color="#ddf" distance="100" intensity="0.4" type="point"></a-light>
<a-light color="#ddf" position="3 10 -10" distance="50" intensity="0.4" type="point"></a-light>
</a-scene>
Already the call of leapjs-playback should be of the following form:
var controller = new Leap.Controller();
controller.use('playback', {recording: 'demo.json'}).connect()
How can I get the active instance of Leap Motion and use it in leapjs-playback?
leapjs-playback
[https://github.com/leapmotion/leapjs-playback]
aframe-leap-hands
[https://github.com/openleap/aframe-leap-hands]
Thanks.