[JW Lua] Determining the current page
Jari Williamsson
jari.williamsson at mailbox.swipnet.se
Mon Oct 21 12:26:59 CEST 2013
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
More information about the JWLua
mailing list