Messages in this thread

Reset layout in ManuScript - Euprint, 21 Nov 10:43AM
     Re: Reset layout in ManuScript - Adrian Drover, 21 Nov 11:28AM
         Re: Reset layout in ManuScript - Bob Zawalich, 21 Nov 07:47PM
             Re: Reset layout in ManuScript - Euprint, 19 Dec 12:44PM
                 Re: Reset layout in ManuScript - Bob Zawalich, 20 Dec 10:05AM
                     Re: Reset layout in ManuScript - Euprint, 29 Jan 03:06PM

Reset layout in ManuScript
Posted by Euprint - 21 Nov 10:43AM
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.

Thank you very much!

Back to top | All threads
 
Re: Reset layout in ManuScript
Posted by Adrian Drover - 21 Nov 11:28AM
Bob Z. is the man to help you with this.

Back to top | All threads
 
Re: Reset layout in ManuScript
Posted by Bob Zawalich - 21 Nov 07:47PM (edited 21 Nov 09:04PM)
You can probably do all of what you want to do.

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.

--
Bob

An experienced user of Sibelius. Sib 1.2 - 8, Windows 10 Pro 64 bit, 32 G RAM. Year 2017.
For plugin lookup and categories see http://www.nycmusicservices.com/musicresources
For manual plugin installation see http://www.sibelius.com/download/plugins/index.html?help=install

Back to top | All threads
 
Re: Reset layout in ManuScript
Posted by Euprint - 19 Dec 12:44PM
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!

Back to top | All threads
 
Re: Reset layout in ManuScript
Posted by Bob Zawalich - 20 Dec 10:05AM (edited 20 Dec 10:06AM)
for each bar in selection
{
bar.Respace();
}

will process BarObject objects. What you need to say is

for each Bar b in selection
{
b.Respace();
}

that is, you specifically have to look for objects of type "Bar" .

The manual says:

Selection
for each variable in returns every BarObject (which is an object within a bar) in the selection.

for each type variable in produces each object of type type in the selection.

So you want the second model. Should work fine after that.





--
Bob

An experienced user of Sibelius. Sib 1.2 - 8, Windows 10 Pro 64 bit, 32 G RAM. Year 2017.
For plugin lookup and categories see http://www.nycmusicservices.com/musicresources
For manual plugin installation see http://www.sibelius.com/download/plugins/index.html?help=install

Back to top | All threads
 
Re: Reset layout in ManuScript
Posted by Euprint - 29 Jan 03:06PM
Thank you very much, Bob. It worked like a charm like this!

Back to top | All threads
 

Quick reply

To add a reply to the end of this thread, type it below, then click Reply.

(.sib, .png and .jpg only)

Messages in this thread

Reset layout in ManuScript - Euprint, 21 Nov 10:43AM
     Re: Reset layout in ManuScript - Adrian Drover, 21 Nov 11:28AM
         Re: Reset layout in ManuScript - Bob Zawalich, 21 Nov 07:47PM
             Re: Reset layout in ManuScript - Euprint, 19 Dec 12:44PM
                 Re: Reset layout in ManuScript - Bob Zawalich, 20 Dec 10:05AM
                     Re: Reset layout in ManuScript - Euprint, 29 Jan 03:06PM