How to deactivate the 'Automatic placement' for text objects
I have created a plugin to show harmonic intervals in counterpoint exercises. On MuseScore 2.3.2 it do this:
but MuseScore 3 automatic placement do this:
The result that i wanted is the first. So, how to deactivate the 'Automatic placement', by plugin code?
Thanks.
Comments
You can set the
autoplace
property of an element tofalse
.Although perhaps you're rather looking to put
position
to the value of Below rather than the default Above for Staff Text.In reply to You can set the autoplace… by jeetee
Indeed, much better to simply set it to below (the internal property is Placement, BTW, but I don't know how it's called in the plugins) than to mess with resorting to disabling autoplace and manual placement. With autoplace enabled and palcement set to below, you may not need manual adjustment at all - the collision avoidance will stack the numbers for you.
In reply to You can set the autoplace… by jeetee
Hello,
i've tried both solutions: to set 'autoplace' property to 'false'; to change 'placement' property to '1' (below).
The 'autoplace=false' solution works fine. The below placement (with autoplace = true) still have problems.
So, I'm using the first solution.
Thanks.
In reply to Hello, i've tried both… by Rogerio Constante
I guess that's a matter of the spacing being too tight to fit the text without collisions. In which case, turning off autoplace will indeed allow the collisions, but personally I'd rather just increase the spacing.