load in external python libraries automatically in Maya

load in external python libraries automatically in Maya

maya.stoffijn
Explorer Explorer
510 Views
2 Replies
Message 1 of 3

load in external python libraries automatically in Maya

maya.stoffijn
Explorer
Explorer

Hello!


I am using an external package in Pycharm called Mido, to analyze the data in midi-files to then use to drive parameters in Maya.
I am wondering however if there is a way that everyone would be able to use the script, even if Pycharm is not installed (then the user can't manually install the Mido package). Is there a way to script it in? That the script automatically downloads the Mido package, stores it somewhere on the PC and reaches back to it?

 

The goal would be that if you just run the script in the Maya script editor, it would work.

 

thanks in advance

0 Likes
511 Views
2 Replies
Replies (2)
Message 2 of 3

jmreinhart
Advisor
Advisor
Is there a way to script it in? That the script automatically downloads the Mido package, stores it somewhere on the PC and reaches back to it?

This is a good place to start

https://stackabuse.com/download-files-with-python/ 

Message 3 of 3

maya.stoffijn
Explorer
Explorer

thanks! I'll look into it.

0 Likes