installing LEAP motion module in Houdini
3339 0 0- 212A
- Member
- 21 posts
- Joined: May 2016
- Offline
hi there,
I've gotten my leap motion controller working outside of houdini with a python script, but when installing the module
in the directory:
C:\Program Files\Side Effects Software\Houdini 15.0.459\python27
tried this directory also as suggested on the forums but no luck
C:\Program Files\Side Effects Software\Houdini 15.0.459\houdini\python2.7libs
i get this error:
Error: Python error: Traceback (most recent call last):
File “<stdin>”, line 7, in <module>
File “C:\PROGRA~1\SIDEEF~1\HOUDIN~1.459\python27\lib\Leap.py”, line 28, in <module>
LeapPython = swig_import_helper()
File “C:\PROGRA~1\SIDEEF~1\HOUDIN~1.459\python27\lib\Leap.py”, line 20, in swig_import_helper
import LeapPython
ImportError: No module named LeapPython
i then import the LeapPython.pyd file into the relevant folder in DLL where all the other pyd files live
then i got the following error:
ImportError: DLL load failed: %1 is not a valid Win32 application.
then it occurred to me that in the console window i am using:
Python 2.7.5 (default, Oct 24 2013, 17:49:49) MSC v.1700 64 bit (AMD64) on win32
and the script was working outside houdini because my python i am using: (with the leap motion 32bit module)
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) MSC v.1500 32 bit (Intel) on win32
so then i thought i need to put the 64bit version of LeapPython.pyd in the DLL folder
so this stopped the errors from appearing in houdini but then i get nothing happening in the viewport & no print statements.
Here is the file attached
i'm basically trying to move the pig head 10cm in the ‘x’ direction everytime i produce a poke gesture with my hand. but nothing happens???
I've gotten my leap motion controller working outside of houdini with a python script, but when installing the module
in the directory:
C:\Program Files\Side Effects Software\Houdini 15.0.459\python27
tried this directory also as suggested on the forums but no luck
C:\Program Files\Side Effects Software\Houdini 15.0.459\houdini\python2.7libs
i get this error:
Error: Python error: Traceback (most recent call last):
File “<stdin>”, line 7, in <module>
File “C:\PROGRA~1\SIDEEF~1\HOUDIN~1.459\python27\lib\Leap.py”, line 28, in <module>
LeapPython = swig_import_helper()
File “C:\PROGRA~1\SIDEEF~1\HOUDIN~1.459\python27\lib\Leap.py”, line 20, in swig_import_helper
import LeapPython
ImportError: No module named LeapPython
i then import the LeapPython.pyd file into the relevant folder in DLL where all the other pyd files live
then i got the following error:
ImportError: DLL load failed: %1 is not a valid Win32 application.
then it occurred to me that in the console window i am using:
Python 2.7.5 (default, Oct 24 2013, 17:49:49) MSC v.1700 64 bit (AMD64) on win32
and the script was working outside houdini because my python i am using: (with the leap motion 32bit module)
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) MSC v.1500 32 bit (Intel) on win32
so then i thought i need to put the 64bit version of LeapPython.pyd in the DLL folder
so this stopped the errors from appearing in houdini but then i get nothing happening in the viewport & no print statements.
Here is the file attached
i'm basically trying to move the pig head 10cm in the ‘x’ direction everytime i produce a poke gesture with my hand. but nothing happens???
Edited by 212A - Jan. 11, 2017 04:58:34
-
- Quick Links