Hi! I'm trying to make a plugin that lets me do the following steps in one click, for the entire score:
reset space above
reset space below
reset design (of all objects)
reset position (of all objects)
unlock lay-out (remove all system breaks etc)
reset note spacing
Is it possible to do this? Can anyone point me in the right direction for this? I do not have much experience with writing in this kind of code and the 160 page document about the ManuScript is a bit intimidating. I found I have to write 'ResetSpaceAroundBar(above,below)', but I cannot get it to work.
There are 2 similar downloadable plugins that will reformat scores, in the category Layout: Tidy after Conversion, which I wrote, and Tidy Score, which Kenneth Gaw wrote.
I suggest you have a look at the code in either of these plugins to see how they accomplish what they do.
Thank you very much for your help. I looked at the plug-ins you suggested and was able to accomplish almost everything I wanted to do, except for the last step I wanted to accomplish: reset note spacing. I added the lines
for each bar in selection
{
bar.Respace();
}
but this doesn't seem to work. Can you maybe help me with this one? Thank you very much!