Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Accessing USB HID over python in Fusion 360

2 REPLIES 2
Reply
Message 1 of 3
uday1489
622 Views, 2 Replies

Accessing USB HID over python in Fusion 360

Hi Guys,

 

I am trying to access a USB HID mouse and get data from the mouse for manipulating objects inside Fusion 360. I found a couple of USB HID modules for python and pip installed them. 

 

Now I am trying to write a python script that can run within Fusion. I am unable to import the python modules. Is there anything special that needs to be done to import python modules installed on the machine? 

2 REPLIES 2
Message 2 of 3
frankzhang
in reply to: uday1489

Do you have error messages when you were unable to import your python module? Usually, if you failed to import, it is probably because that your module is not in the path environment, if that is the case, you can use below code to add your module path,

import sys
sys.path.append('path to your module')
Message 3 of 3
uday1489
in reply to: frankzhang

That worked for me, thanks !

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report