Plugin system not documented
Hello everybody,
the documentation of the plugin system is incomplete. As a newbie I'm wondering e.g. how can I select an element, is there a nicer way to develop in a real text editor like vscode?
I appreciate every help.
Comments
What's wrong about https://musescore.org/en/handbook/developers-handbook/plugins-3x?
In reply to What's wrong about https:/… by Jojo-Schmitz
For example how can a element be selected?
In reply to For example how can a… by wulfheart
Would looking at existing plugins help?
In reply to Would looking at existing… by Jojo-Schmitz
It could, but as a starting point it is exhausting.
In reply to It could, but as a starting… by wulfheart
It would have been helpful to know at least some defined variables like curScore.
In reply to It would have been helpful… by wulfheart
There is currently no way to add an arbitrary element to a selection from a plugin, although this might be added in the future. As for the variables you mention, they are not really global variables but properties of an object of type
MuseScore
(which should be the root component of a plugin) so they are available in the corresponding type documentation.As for the documentation itself, should perhaps some more detailed examples be added to the main page or some relevant documentation pages? Or what could be helpful for the documentation to be more useful for people starting MuseScore plugins development?
In reply to There is currently no way to… by dmitrio95
Thanks. I will try it with your suggestion.
A link from the handbook to the main page would have been helpful. I'm going to dig in a little bit.
Furthermore a little example how to access the root component would be nice.
In reply to There is currently no way to… by dmitrio95
It seems like you know what you are doing so some further questions:
1. Is it possible to run another plugin from a plugin?
2. Is it possible to access musical symbols like a fermata from a plugin and insert it?
3. Is it possible to execute actions which are defined in shortcuts from a plugin?
In reply to It seems like you know what… by wulfheart
I strongly recommend working in a real editor.
Work in vs code. Save. Open Musescore's plugin creator. Click the reload button (specially for this purpose). Hit run.
In reply to I strongly recommend working… by ecstrema
This is cool 🔥