[JW Lua] New pages

Charles O. Lawrence charlesolawrence at bellsouth.net
Wed Sep 25 20:14:44 CEST 2013


Sorry to keep making life difficult!

I had actually considered doing something like what you suggested, but I
figured there was a class not yet hooked into JWLua that would do it.

Charles Lawrence





-----Original Message-----
From: JWLua [mailto:jwlua-bounces at jwmusic.nu] On Behalf Of Jari Williamsson
Sent: Wednesday, September 25, 2013 12:43 PM
To: The JW Lua script plug-in.
Subject: Re: [JW Lua] New pages

On 2013-09-25 16:43, Charles O. Lawrence wrote:

> As a consequence of reducing the size of pages from say, legal to 
> Octavo, the last measures get "squeezed" onto a new page/s at the end.
> These new pages are created with the same legal size as the original.
> Is there any way to set the specs on these new pages before they are 
> created so they will be Octavo as well?

What you need access to is the class for the "Page format for Parts/Score"
preference data. I'll add that to the next beta.

For now, this should work to change the format anyway:
* Put the page changing code (including the FCPages:LoadAll() statement) in
a loop. If all pages are parsed but already have the correct page size,
break the loop.
* At the end of the loop, update the layout
* Loop back


Best regards,

Jari Williamsson


_______________________________________________
JWLua mailing list
JWLua at jwmusic.nu
http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu





More information about the JWLua mailing list