Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LeapMotion not recognised by the programm #1

Open
lazachemou opened this issue Jun 16, 2015 · 6 comments
Open

LeapMotion not recognised by the programm #1

lazachemou opened this issue Jun 16, 2015 · 6 comments

Comments

@lazachemou
Copy link

I downloaded your files from github and maked the program start. It works with the options --interactive --no-vr. I can use the commands "object" and "center" and "over" etc in the command window (Windows 7). But my hand movements seems not to be recognised. As if the programm didn't recognised the LeapMotion. But I can see my hand in the LeapMotion Visualizer.
Have you any idea why it doesn't work?

@jmcomets
Copy link
Contributor

Can you include your platform and the hardware used?

This project was done with the 2.0.9 SDK (source for SDK is here). If you're using a more recent LeapMotion, you probably need to replace the SDK with the new one, which will probably break the controllers.

One last thing : you may want to use the v0.5 branch, the version on master was still a WIP when we quit working on it.

@lazachemou
Copy link
Author

Hello,

I am using Windows 7 and Blender 2.74. And I replaces Leap.py, Leappython.pyd and Leap.dll with the versions that are in the last SDK I downloaded, ie. 2.2.3.

But it does not work better. Now, when I do: python server.py --interactive, it accepts everythng, but "object", "pottery", "paint". And it shows always the same error for those command lines:
example:
-in the server.py command window:
" paint ERROR:root:Undefined controller paint Traceback <most recent call last File "server.py", line 89, in if not interpret_command: File "C:\Users\my.name\Documents\Github\leapmotion_blender\commands.py", line 53, in interpret_command retval = _cmd_mapping[cmd]<> File "C:\Users\my.name\Documents\Github\leapmotion_blender\controllers\init.py", line 193, in set_current_controller raise ValueError<'Undefined controller %s' % ctrl> ValueError: Undefined controller paint "
And it exits from python.
-in the blender command window:
"mode_texture_paint {} Ending Exception ignored in: <bound method BBQOperator.del of <bpy_struct, BBQOperator invalid>> Traceback : File "", line 99, in del File "C:\Program Files\Blender Foundation\Blender\2.74\scripts\modules\bpy_types.py", line 590, in getattribute properties = StructRNA.path_resolve<self, "properties"> ReferenceError: StructRNA of type BBQOperator has been removed Blender quit"
Have you any idea to help me further? Could it be because I am using Blender 2.74 or because I am using Windows?

But I noticed, in the file "C:\Users\my.name\Documents\Github\leapmotion_blender\controllers\init.py", line 188, there is: defined_controllers = {} So it seems to me that it is normal that at line 192, ctrl is not in defined_controllers, because defined_controllers is empty, and so it says 'Undefined controller' line 193. Or have I misunderstood something?

@jmcomets
Copy link
Contributor

Have you tried using the v0.5 branch? Like I said, the master branch is pretty unstable. The blame is commit 7611362, where the controllers were refactored and the dictionary used for naming controllers was cleared (called by the commands module here). You can restore the mapping here which should probably solve the problem.

@lazachemou
Copy link
Author

Thank you very much. (And I am sorry, I didn't understood first what you meant about v0.5 branch.)
Now in the server.py command window, there is no error when typing "object" for example. But when I start "blender -P "path\blender.py" in the other whindow, it gives an error:
"AL Lib: UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead found bundled python: C:\Program Files\Blender Foundation\Blender\2.74\python
Starting
ERROR:root:[WinError 10049] L'adresse demandée n'est pas valide dans son contexte
Traceback :
File "", line 144, in invoke
OSError: [WinError 10049] L'adresse demandée n'est pas valide dans son contexte"
So the "BBQ Operator" commande in Blender does not work anymore.

I put '127.0.0.1', 1337 in both blender.py line 144 and server.py line 60. And now there is no more error.
But there is still this Fail to set frequences and blender does not react with my hand movements.

@jmcomets
Copy link
Contributor

This error is indeed pretty strange. As I recall, we had the Blender plugin
running in Python 3, the Leap and VR server under Python 2 (only version
supported by the Leap SDK at the time). I can't remember the version of
Blender we were using though.

On Tue, Jun 23, 2015 at 11:30 AM lazachemou [email protected]
wrote:

Thank you very much. (And I am sorry, I didn't understood first what you
meant about v0.5 branch.
Now in the server.py command window, there is no error when typing
"object" for example. But when I start "blender -P "path\blender.py" in the
other whindow, it gives an error:
"AL Lib: UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
found bundled python: C:\Program Files\Blender
Foundation\Blender\2.74\python
Starting
ERROR:root:[WinError 10049] L'adresse demandée n'est pas valide dans son
contexte
Traceback :
File "", line 144, in invoke
OSError: [WinError 10049] L'adresse demandée n'est pas valide dans son
contexte"
So the "BBQ Operator" commande in Blender does not work anymore.

I put '127.0.0.1', 1337 in both blender.py line 144 and server.py line 60.
And now there is more error.
But there is still this Fail to set frequences and blender does not react
with my hand movements.


Reply to this email directly or view it on GitHub
#1 (comment).

@lazachemou
Copy link
Author

The pottery mode works! I can make the object rotate. But I can't grab or change the size of the object or sculpt the object.
But thanks for your help!
I will look what I can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants