[JW Lua] FCStaffStyleDef:Load(...) always returns true
Chris
marcel.denio at gmail.com
Wed May 11 15:37:46 CEST 2016
Hello Jan
The problem is that the list index (ItemNo) is broken:
1 2 3 4 5 6 7 8 9 10 .... 13 .... 20 ... 25 ......
But why ???
With this script, you retrieve the list (66 is your last index) :
---------------------------------------------
for i =1,66 do
local namestr=finale.FCString()
local s=finale.FCStaffStyleDef()
s:Load(i)
s:GetName(namestr)
if namestr.LuaString=="" then
local name = finale.FCString()
name.LuaString = "dummy " .. i
s:SetName(name)
s:Save()
end
end
---------------------------------------------
Best regards
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20160511/b214123e/attachment.html>
More information about the JWLua
mailing list