[JW Lua] UI:MoveToMeasure doesn't advance the score

Harald Schollmeyer hschollm at gmx.net
Sun Sep 27 14:26:59 CEST 2015


Just for the record: I solved the issue with autohotkey, following the
advice in this thread:  
http://forum.makemusic.com/default.aspx?f=5&m=387430 .
Perhaps these GUI things are easier in AHK than in Lua. I'll prefer
Lua for notation/content-related things.

Harald


Am .09.2015, 21:50 Uhr, schrieb Harald Schollmeyer <hschollm at gmx.net>:

> 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