[JW Lua] FCCustomSmartLineDefs:Save() deletes "Dash Length" value ... more
Jan Angermüller
jan at angermueller.com
Tue Apr 7 22:22:41 CEST 2015
Jari,
it's not the Save() that deletes, but the SetLineCharacter().
This shows the following modification which temporarily
saves the deleted values and re-writes them before saving.
local cdefs=finale.FCCustomSmartLineDefs()
cdefs:LoadAll()
for c in each(cdefs) do
local line=c.LineDashLength
local width=c.LineWidth
c:SetLineCharacter(c:GetLineCharacter())
print(line,width,c.LineDashLength,c.LineWidth) --first two values
are ~= 0, last two values are == 0
c.LineDashLength=line
c.LineWidth=width
c:Save()
end
Best regards,
Jan
More information about the JWLua
mailing list