[JW Lua] JWLua scripts

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Tue Sep 17 15:32:48 CEST 2013


On 2013-09-17 14:49, Charles O. Lawrence wrote:

> A few more questions.  When swapping layers with a selected region, what if
> I don't want to include staves that are hidden, but are selected?  As you
> know, they could be hidden because they are empty and Hide Empty Staves is
> selected, or they may have a hide staff style applied.  I don't see a
> property or method to determine if a staff is hidden.  Also, does it matter
> if Scroll or Studio view is selected instead of Page, since Scroll/Studio
> view will always show hidden staves?

Yes, the way Finale handles regions is different depending on how the 
selection is made. If the user selects one single "optimized system" 
(using the old Finale terminology), the cut-out staves will not be part 
of the slot list. If the user selects a region that spans multiple 
systems in Page View or if the user is in Scroll/Studio View, the global 
staff list is used - so even hidden staves will be in the selection.

The solution for the fact that the staff visibility might change at any 
point is to use FCCurrentStaffSpec, sampled for example at the beginning 
of each cell. FCCurrentStaffSpec is diagnostic-only data but very 
efficient - it returns the "resulting staff" (=the end result of all 
applied staff styles, for example) at any point in the score.

However, I now see that I haven't included the relevant properties to 
get the cut-out/hide method for the staff. I'll add that to 0.05!


Best regards,

Jari Williamsson






More information about the JWLua mailing list