[JW Lua] FCCustomSmartLineDefs:Save() deletes "Dash Length" value

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Tue Apr 7 23:52:47 CEST 2015


Jan,

Those settings are in the same data space within Finale. I'll see if I 
can fix this by preventing some getters/setters to work if the 
FCCustomSmartLineDef is in the wrong mode.


Best regards,

Jari Williamsson


On 2015-04-07 22:01, Jan Angermüller wrote:
> Jari,
>
> when I run the script below which actually should change nothing -
> it's just a SetValue(GetValue) - then the "Dash Length" and "Thickness"
> from the Smart Line Designer dialog will be set to 0.
> See attached screenshot: before and after running the script
>
> When I remove the SetValue(GetValue) line, the strange changes do not
> occur,
> i.e. Save() will change nothing.
>
> local cdefs=finale.FCCustomSmartLineDefs()
> cdefs:LoadAll()
> for c in each(cdefs) do
>      c:SetLineCharacter(c:GetLineCharacter())
>      c:Save()
> end
>
> Best regards,
> Jan
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>






More information about the JWLua mailing list