Reopening automatically a "dock" plugin at start
Hi,
There is this Duration Editor plugin that I made. I'd like not having to reopen it, resize it, re-place it every time I open Musescore.
Is this possible ?
Cheers,
Hi,
There is this Duration Editor plugin that I made. I'd like not having to reopen it, resize it, re-place it every time I open Musescore.
Is this possible ?
Cheers,
Do you still have an unanswered question? Please log in first to post your question.
Comments
You can store a plugin's preferences along with (and inside) the MuseScore preferences (MuseScore3.ini actually).
Check how the Batch Export plugin does it (and a few others), that doesn't set (nor store) its size or position though.
Do run a plugin at MuseScore's start, you may be able to use the commandline and the -p option
In reply to You can store a plugin's… by Jojo-Schmitz
Hi, I had little successes with your suggestions. Thanks anyway.
For the "-p" option, I couldn't make it work. As soon as I add a "-p" option MuseScore doesn't start anymore or crashes.
I tried different syntaxes (I tried with a "dialog" plugin and a "dock" plugin)
"C:\Program Files\MuseScore 3\bin\MuseScore3.exe" -p alternatefingering --> no start
"C:\Program Files\MuseScore 3\bin\MuseScore3.exe" -p alternatefingering.qml --> MS crash
"C:\Program Files\MuseScore 3\bin\MuseScore3.exe" -p "alternatefingering" --> no start
"C:\Program Files\MuseScore 3\bin\MuseScore3.exe" -p "alternatefingering.qml" --> MS crash
Regarding the settings, I managed to store test info within the MuseScore.ini file, but I cannot find a way to retrieve what's the size and position of the plugin's window (may it be a "dialog" plugin or a "dock" plugin).
The size is always the one at start (as defined in the "MuseScore" element) whatever is the actual size.
And the position cannot be accessed.
In reply to Hi, I had little successes… by parkingb
I believe you need the full path to the plugin
In reply to I believe you need the full… by Jojo-Schmitz
Well MS crashes too with the full path:
"C:\Program Files\MuseScore 3\bin\MuseScore3.exe" -p "D:\data\MuseScore3\Plugins\alternatefingering.qml"
"C:\Program Files\MuseScore 3\bin\MuseScore3.exe" -p D:\data\MuseScore3\Plugins\alternatefingering.qml
In reply to Well MS crashes too with the… by parkingb
OK, would need to check that in a debugger
In reply to Well MS crashes too with the… by parkingb
The -p plugin mode is intended to launch MuseScore without a GUI; run the provided plugin and close again.
Given that you're trying to run a dockable plugin and no GUI exists → crash.
In reply to The -p plugin mode is… by jeetee
Outch, yes, of course.
Although an error message might be nicer than a crash
In reply to The -p plugin mode is… by jeetee
The crashes now sounds logical.
Any other ways to open automatically a plugin at start ?
In reply to The crash now sounds logical… by parkingb
Not to my knowledge, no. For docking plugins MuseScore wraps them in a View object only when invoking them.