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

Jan Angermüller jan at angermueller.com
Wed Apr 8 00:08:29 CEST 2015


Jari,

an easy (but dirty) workaround would be to fix it as in I did in the 
code that I posted in my 2nd mail:
temporarily save the LineWidth/LineDashLength values at the beginning of 
SetLineCharacter and re-assign them before leaving SetLineCharacter. 
That's at least how I fixed it in my plugin.

Best regards,
Jan


Am 07.04.2015 um 23:52 schrieb Jari Williamsson:
> 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
>>
>
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>


-- 
Jan Angermüller
Jevenstedter Str. 80
22547 Hamburg
Tel. 040 - 28 94 84 82
www.angermueller.com





More information about the JWLua mailing list