Where is MuseScore 3.5 Plugin Library?
I am new to QML plugins and trying to learn as much as I can from the documentation and samples. I have noted that some of the properties I want to use are documented as being implemented in MuseScore 3.5. However all the sample plugins I have seen use "import MuseScore 3.0" at the top. I have tried to change this to "import MuseScore 3.5" or "import MuseScore 3.6" but this gives the error that 3.5 is not installed, though I am up to date on the app (3.6.2). Am I only getting the QML properties available up to 3.0 because of this? Or should I still get the features available in 3.5 and up even though I am importing MuseScore 3.0?
Comments
There is only one, just continue to use
import MuseScore 3.0
and you'll get whatever APIs the current version hasIn reply to There is none, just continie… by Jojo-Schmitz
Thank you the answer. Here's one of the reasons I asked the question, though, and I'm still a bit in the dark. I am trying to get information about a staff but find that curScore.staves is undefined. The documentation for Staff states that staves, a list, is available since version 3.5. So I thought maybe I was seeing it as undefined because I wasn't getting the 3.5+ features. Can you tell me if there is some other reason why curScore.staves is undefined?
Thanks again for your help!
In reply to Thank you the answer. Here… by lpoleshuck
Unfortunately this property is indeed broken. I have submitted a fix for it but it will only be available in 3.6.3 version (if it will ever be realeased, which seems to be not planned). In the meanwhile, depending your plugin's needs, you may be able to use one of the workarounds listed in this comment.
In reply to Unfortunately this property… by dmitrio95
It will be in MuseScore 4 too
In reply to Unfortunately this property… by dmitrio95
Got it. Thanks!