[JW Lua] Determining the current page

Herbert van Essen hpvanessen at gmail.com
Mon Oct 21 13:24:34 CEST 2013


Thanks very much for the quick answer!





Hartelijke groet,

Herbert
(06-29455445)


2013/10/21 Jari Williamsson <jari.williamsson at mailbox.swipnet.se>

> On 2013-10-21 11:56, Herbert van Essen wrote:
>
>  Is it also possible to determine if the page in focus is a left or right
>> page via the FCUI?
>>
>
> AFAIK, the first page is always a right page in Finale, so this should do
> it:
>
> isrightpage = (finenv.UI().CurrentPage % 2) ~= 0
>
> (The '%' is modulo in Lua. '~=' is "not equal to" in Lua.)
>
>
>
> Best regards,
>
> Jari Williamsson
>
>
> ______________________________**_________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/**listinfo/jwlua_jwmusic.nu<http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20131021/29e6964c/attachment-0002.html>


More information about the JWLua mailing list