[JW Lua] UI:MoveToMeasure doesn't advance the score
Harald Schollmeyer
hschollm at gmx.net
Wed Sep 23 21:50:29 CEST 2015
Am .09.2015, 20:12 Uhr, schrieb Jari Williamsson
<jari.williamsson at mailbox.swipnet.se>:
> The method maps directly to the PDK API. The API's current behaviour is
> that it will only move the view if the target measure is completely
> out-of-view. I can modify the documentation on this method for the next
> update.
Thank you! Yes, I suppose it makes sense to mention that in the
documentation.
As for now, that's my workaround which does, what it should:
-- advance the score + 1 measure in scroll view
local measures = finale.FCMeasures()
measures:LoadAll()
lastmeasure = measures.Count
local ui = finenv.UI()
local currentmeasure=ui.CurrentMeasure
-- jump to the last measure, then back to the former current measure +1
ui:MoveToMeasure(lastmeasure,0)
ui:MoveToMeasure(currentmeasure+1,0)
Harald
--
___________________________________
Harald Schollmeyer
Wesmarstr. 3a, 45659 Recklinghausen
Telefon: +4923614879188 und +491773125084
E-Mail: hschollm at gmx.net
More information about the JWLua
mailing list