Siavash Tehrani
Thanks so much for sharing this Jonathan! I get the following error when trying to access the panel:
There is an error in the SpaceMouse script.
Traceback (most recent call last):
File "C:/Users/hibbi/Documents/houdini19.5/python_panels/SpaceMouse.pypanel", line 18, in <module>
#
File "C:\Program Files\Side Effects Software\Houdini 19.5.773\python39\lib\site-packages-forced\shiboken2\files.dir\shibokensupport\__feature__.py", line 142, in _import
return original_import(name, *args, **kwargs)
ModuleNotFoundError: No module named 'spacenavigator'
Ohh yeah, I forgot to include this 3th party python bit:
https://github.com/johnhw/pyspacenavigator/blob/master/spacenavigator.py [
github.com]
I guess you could place it in here:
C:\Program Files\Side Effects Software\Houdini 19.5.752\python39\lib\site-packages
But what I prefer to do it make separate folder for nondefault site-packages and add it to the PATH env variable so the imports will find it. That way things will stay intact when updating/changing Houdini versions. In my case it looks like this:
I see the 3th party code is MIT licensed so that gives me the option to just include it in the code and make it a single package, I'll look into that later, until then the above method should work.