[JW Lua] GetFullNamePosition & FCLuaIterator
Chris
marcel.denio at gmail.com
Wed Dec 2 09:09:47 CET 2015
Jari
"GetFullNamePosition" doesn't return theright object ("FCStaffNamePosition")
with FCLuaIterator.
It always returns the object with index 1.
---------------------------------------------
local staves = finale.FCStaves()
staves:LoadAll()
for staff in each(staves) do
local fnp= staff:GetFullNamePosition()
print("staff " .. staff.ItemNo," -> FCStaffNamePosition " ..
fnp.ItemNo )
end
print("--------------------")
local function callback(staff)
local fnp= staff:GetFullNamePosition()
print("staff " .. staff.ItemNo," -> FCStaffNamePosition " ..
fnp.ItemNo )
end
local iterator = finale.FCLuaIterator()
iterator:ForEachObject(finale.FCID_STAFF, callback)
---------------------------------------------
Best regards
Chris
More information about the JWLua
mailing list