giuliom95 / arduino-maya

A suite to make an Arduino board communicate with Autodesk Maya
14 stars 7 forks source link

Not working on Maya 2018 #2

Open Skrytis opened 6 years ago

Skrytis commented 6 years ago

Great work! We tried to build everything for windows 8 and maya 2018 with the very same code. We modified the serial2maya to work with windows, and everything seems fine. But nothing happens in the scene when moving the levers. Do you need other files in maya before you get this to work or?

Skrytis commented 6 years ago

arduino-maya-master\src\driver\serial2maya.py", line 44, in cmd = 'arduinoUpdateChannel ' + str(i) + ' ' + v TypeError: must be str, not bytes

So there's something wrong with the code...

giuliom95 commented 6 years ago

Are you using Python 3, right? If that so, try the fix I committed on the issue/#2 branch.

Skrytis commented 6 years ago

Yes, I'm using Python 3.6.4. This is with the fix. Basically the same error but in a different place? image

Skrytis commented 6 years ago

I changed mayaconn.send(cmd) to mayaconn.send(bytes(cmd,'utf8')) and now it works! Really cool and thank you for this project!

giuliom95 commented 6 years ago

Sorry I haven't tested it. Thanks for the fix. Are you going to make a pull request?