[JW Lua] FCStaffNamePosition already working ?

Jan Angermüller jan at angermueller.com
Sun Mar 22 21:18:42 CET 2015


Jari,

I haven't succeeded in changing the position of the staff name.
The values are saved, but nothing happens. The test script is below.

My questions are:
1.) Is it possible at all ? Because the class browser doesn't list 
FCStaffNamePosition,
but FCStaff:GetFullNamePosition which is listed in the class browser 
requires FCStaffNamePosition ?

2.) The new position will only be used if the "Full Staff Name Position" 
option from "Staff attributes" is checked.
   How can I check it within JW Lua ? In FCGroup it's 
GetUseFullNamePositioning() - that might be missing in FCStaff.

3.) The script below saves the values in some cases. It looks to me that 
they are only saved, if the staff has already an corresponding part and 
is not score-only. In those staves that do not have a corresponding part 
the values are not stored.

Best regards,
Jan

local staves=finale.FCStaves()
staves:LoadAll()
for s in each(staves) do
     local staffpos=s:GetFullNamePosition()
     staffpos.HorizontalOffset=-300
     s:Save()
end




More information about the JWLua mailing list