How do I start writing or creating an app for leap motion? (python)

user2627127 picture user2627127 · Jul 28, 2013 · Viewed 13.5k times · Source

I have tried googling this, but it is a lot of programming talk i do not necessarily completely understand. All i have done so far is download the SDK for Leap Motion and found that programs can be written with python. which is a programming language i am somewhat familiar with.

From the samples on the SDK it seems it requires a module to start writing that means each leap motion app starts with "import Leap" in python. however i do not have this "Leap" module and I am not sure where to download it.

Pretty much I would like to be able to play around and create some basic apps that can do some simple things, but I am not so sure on how I would actually need to write the program for leap motion and then also how to turn it into an application that can be opened and controlled with the Leap Motion device.

Answer

Nicksil picture Nicksil · Jul 28, 2013

To begin, here's the Leap Motion Python documentation overview: https://developer.leapmotion.com/documentation/Languages/Python/Guides/Leap_Overview.html

You can find Leap.py within the LeapSDK/lib/ directory. Review the following link for information about the file structure of the Leap Motion SDK: https://developer.leapmotion.com/documentation/Languages/Python/Guides/Sample_Python_Tutorial.html

Finally, you can find the Leap Motion API documentation here: http://developer.leapmotion.com/documentation/Languages/Python/API/index.html

UPDATE: Leap Motion has changed their documentation location and structure since I originally wrote this reply. The above links no longer work.

As I also no longer develop on Leap Motion's platform, I'm unfamiliar with the various APIs they currently have setup, so I'll avoid making any assumptions and simply leave a link to the documentation's index:

https://developer.leapmotion.com/documentation/index.html?proglang=current