algorithmic modeling for Rhino
I would like to write some of my own functions to be driven by the Leap Motion using they Python component in grasshopper.
I am not sure how to begin this setup. I have the leap SDK downloaded, but I do not know where to place the files that support its programming. Any advice would be greatly appreciated. I have been having trouble finding support for this issue. Please let me know if there is any additional information from my end that may help to find a solution.
Kind Regards,
Jake
Tags:
there is a minor mistake in your Python code. You need to either use / or \\ in the path or put an "r" before the path.
yourFolder = r"C:\Users\jake_newsum\Documents\Programs\Leap\CSetup"
import sys
import clr
import os
clr.AddReferenceToFileAndPath(os.path.join(yourFolder, "Leap.dll"))
if yourFolder not in sys.path:
sys.path.append(yourFolder)
import Leap
I can't seem to get this to work. I have tried with r"", \\, and /.
I tried it on a windows 7 computer to see if it was just my windows 8, but no luck. It wont recognize the Leap.dll file. I tried moving the file to a folder on the desktop as well.
yourFolder = r"C:\Users\Jake\Desktop\CSetup"
import sys
import clr
import os
clr.AddReferenceToFileAndPath(os.path.join(yourFolder, "Leap.dll"))
if yourFolder not in sys.path:
sys.path.append(yourFolder)
import Leap
Thank you for all of your help. I will keep playing with it.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by