Script to import MM supported modules as VCV favorites

I was asked to raise the visibility of this out of a long thread. I have created some scripts that you can use to import the modules supported by MM into VCV as Favorites. Very useful for a smoother workflow.

Scripts can be found on GitHub . If you have Python installed (tested with 3.10 and 3.12) then all you have to do is install pyyaml (“pip3 install pyyaml”), clone the repo (or download the files directly), and you will be good to go. Note: the importfavoritesfrom4ms script may have issues on MacOS so if you get a cert related issue just download the latest yaml files:
plugins.yml: https://metamodule.info/dl/plugins.yml
built_in.yml: https://metamodule.info/dl/built_in.yml
and run importfavoritesfromyaml. If you don’t download the latest the script will use the old files that are in the repo.

Scripts:

  • exportfavoritestojson.py (VCV → json)
  • importfavoritesfromjson.py (json → VCV)
  • resetfavorites.py (remove all VCV favorites)
  • importfavoritesfrom4ms.py (official YAML files from 4ms site → VCV, requires installation of pyyaml library)
  • importfavoritesfromyaml.py (local YAML files → VCV, requires installation of pyyaml library)

Let me know if you run into any issues and I will make updates.

2 Likes

P.S. All the scripts will use default install paths for VCV on Windows and MacOS. If you installed it somewhere else, you will need to modify the scripts. You should be able to run these scripts from any folder location, as long as the json or yaml files they use are in the same folder.

Thanx for your work, a simple question: is there another thread about how the order of running this scripts for OSX?

I started with: resetfavorites.py after running this script it gave me this error: SyntaxError: invalid decimal literal
studio67@MBPvanStudio67 Python %

ps. I have installed VCV free in the normal locations

Ok installed this for now: pyyaml (with the terminal)
And Python is the latest version, all running.

But still got the same error running the “resetfavorites.py”

This error is associated with having a misnamed variable that starts with a numerical literal. None of those in my code, so I imagine its in a lib somewhere that is being loaded as a dependency, but that would not be a script that was installed by pip. So I imagine you have a module installed on your machine that has been altered or is dodgy. You can attempt to create a “clean” python environment with venv or similar and then just install pyyaml by running “pip install pyyaml”.

And there is no order per se. If you want to remove all of your existing favorites then run the resetfavorites script first. All of the import* scripts only add favorites and will leave any other modules you have favorited alone. If you want to “save” your existing favorites before resetting and then importing the MM supported favorites, then run exportfavoritestojson first. That way you can run reset and then import them again later.

Thank you for this posting. I was having issues with python, but it looks like my primary issue was the missing pip3 package. This was a serious time saver!!