ScoreView arguments
In the example plugin of the ScoreView function, curScore is supplied as an argument.
What other ways are there to give ScoreView a score? Is there a way to pass a .mscz file path to it or would I have to open the file in musescore?
Thanks, Rafael.
Comments
Currently you can call setScore() on it. It takes a Score object as argument. So you will need to create one. There is no facility to use a path. Did you find the plugin documentation in the plugin editor in MuseScore?
If you are interested in improving the plugin interface. Check plugins.cpp and plugins.h, the ScoreView QML element is provided by MsScoreView.
https://github.com/musescore/MuseScore/blob/master/mscore/plugins.h#L83