so i got some help from the Visual Studio guys and managed to generate a DLL file in the x64 folder of my project folder.
However when i put the renamed dll to pyd into the relevant directory in Houdini for it to find the module. I get the following error for this code:
import Leap, sys, thread, time , math
from Leap import SwipeGesture
class LeapMotionListener(Leap.Listener):
def on_connect(self,controller):
print 'motion sensor connected anam'
def main():
listener = LeapMotionListener()
controller = Leap.Controller()
controller.add_listener(listener)
print 'press enter to quit'
try:
sys.stdin.readline()
except KeyboardInterrupt:
pass
finally:
controller.remove_listener(listener)
if name == 'main':
main()
error message:
Error: Python error: Traceback (most recent call last):
File "", line 1, in
File "C:/Users/anam/Documents/houdini15.0/python2.7libs\Leap.py", line 17, in
LeapPython = swig_import_helper()
File "C:/Users/anam/Documents/houdini15.0/python2.7libs\Leap.py", line 16, in swig_import_helper
return importlib.import_module('LeapPython')
File "C:\PROGRA~1\SIDEEF~1\HOUDIN~1.459\python27\lib\importlib_init__.py", line 37, in importmodule
import(name)
ImportError: dynamic module does not define init function (initLeapPython)