Shared plugin code and hierarchy
Hello,
as I am new to writing plugins and having looked at various examples, it appears that most are contained in a often quite large source file. Occasionally I have found that the code is split into smaller, more palatable files.
Upon reloading plugins, does Musescore:
- walk the plugin source folder (and sub folders) or only check the files in there?
- parse all qml
files found and look for MuseScore
entries?
Depending on the answer, is it possible or common to:
- keep plugins in separate folders within the Plugin source folder?
- share some code/files across multiple plugins in the top folder?
- neatly organise small files (qml and js) in a folder hierarchy?
Comments
I keep my plugins in separate folders. Works in MS3 and MS4.
I don't know about the other 2 but would be interested to find out. I suspect that sharing code between folders could be problematic since you may not be able to impose this easily on other users' computers.
I've never tried putting a non-MuseScore plugin QML file in the folders to see what MS does with them.