Disable Automatic Placement with plugin

• Apr 1, 2019 - 07:55
Reported version
3.0
Type
Plugins
Severity
S5 - Suggestion
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

Hello,
Maybe the solution already exists, but I haven't found it.

So my suggestion is to disable autoplace on a given element from a plugin.
If, for example, the plugin creates for each note one number (with "Stave Texte") below the note.
And each number is placed with offsetY =...

The problem is than the numbers, after to apply the plugin, are not in the right place, because the "Automatic Placement".
I must to select all the numbers, and after to disable "Automatic Placement" in the Inspector to have the right place of numbers.
It's not very easy.

So my suggestion is to have the possibility to disable "Automatic Placement" directly in the plugin code.

Thanks.

the subject in relation :
https://musescore.org/en/node/286552


Comments

You should already be able to disable autoplacement for the given element simply by setting its autoplace property:

e.autoplace = false;