'requires score' (requer partitura) message
Hi,
i created the 'Harmonia' plugin to MuseScore 2.3.2 on Linux/Ubuntu and test it on Windows 10. It worked fine.
However, when i changed the plugin to work with MuseScore 3.2.3, it didn't work on Windows OS. Only on Linux. On Plugin Creator, appears the message: "requer partitura" ('requires score', in english, i think).
I would be appreciate if anybody help me.
Thanks,
Attachment | Size |
---|---|
msg_erro.png | 11.14 KB |
Comments
That is not an error, just a fact. It still runs, otherwise the run button would not be disabled
In reply to That is not an error, just a… by Jojo-Schmitz
Thanks for your answer.
So... Why the plugin do not recognize the score that is opened, only on Windows10/MuseScore3.2.3?
In reply to Thanks for your answer. So… by Rogerio Constante
It probably does.
requiresScore
is a plugin property to be set to tell plugins that need a score to work on (like Notenames) from those that don't (like e.g Batch Convert). It is set to true by default and needs to get set to false if needed. You're needit it set to true (or not set at all so it defaults to true) and is set that way, hence that message you seeWhat is the plugin, can you attach it here? Which version or MuseScore? Is that plugin maybe docked and minimized? I've seen that happening, tricking me do believe it doesn't run at all.
In reply to It probably does. … by Jojo-Schmitz
The plugin's name is 'Harmonia' and it is in the plugins page of MuseScore. There are 2 version of plugin:
a) "Harmony v0.121" (anyone has changed/translated the name to english) - to MuseScore 2.3.2. It works fine on Linux and Windows 10;
b) "Harmonia v0.12ms3" - to MuseScore 3.2.3. It works only on Linux. On Windows 10 the plugin stop after the message 'requires score' and doesn't open the interface window (not docked or minimized).
This versions and the Manual are avaliable also on github:
https://github.com/rogerioConstante/plugin-harmonia
Below, the two versions are attached.
Thanks again!!
In reply to The plugin's name is … by Rogerio Constante
That translating the that name was me, sorry, I changed it back.
I can confirm that in MuseScore 3 the plugin doesn't show at all.
It does though when modifying onRun:
This seems needed in MuseScorte 3 but not in MuseSore 2, I found that out quite a while ago when porting the Batch Convert plugin to MuseScore 3
Maybe a
would do the trick too (yet untested, it does though for Batch Convert)
In reply to That translating the that… by Jojo-Schmitz
Hi Jojo-Schmitz, the 'pluginType: "dialog"' trick works!
Thanks, very much!
In reply to Hi Jojo-Schmitz, the … by Rogerio Constante
That is much less of a trick than the
window.visible = true
;-)