[JW Lua] FCCellFrameHold:CalcClefChange problem with hidden layers

Jan Angermüller jan at angermueller.com
Sat Sep 13 21:53:58 CEST 2014


Jari,

thanks for your responses to the many clef issues.
They really help !

Attached you find an example excerpt from a score where
I get weird CalcClefChange results.

Just select all and run the following script:

     local region=finenv.Region()
     for i,j in eachcell(region) do
         local cell=finale.FCCell(i,j)
         local CellFrameHold=finale.FCCellFrameHold()
         CellFrameHold:ConnectCell(cell)
         if CellFrameHold:Load() then
             print("Clef Change",i,CellFrameHold:CalcClefChange())
         else
             print("No Clef Change",i)
         end
     end

These are the results that I get:
Clef Change 1 false             (I don't know if the very first measure 
should return true, probably it should. Up to you.)
No Clef Change 2
No Clef Change 3
Clef Change 4 false               (should be true !)
Clef Change 5 false
Clef Change 6 true
No Clef Change 7
No Clef Change 8
No Clef Change 9

- it only returns true for CalcClefChange in the measure after the cue 
notes,
   and false for the cue notes measures that have a clef change
- the first clef change is only detected through loading the object,
   CalcClefChange still returns false

Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clefchange.musx
Type: application/octet-stream
Size: 135260 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20140913/f546bea7/attachment.obj>


More information about the JWLua mailing list