[JW Lua] metatools assignments
Jari Williamsson
jari.williamsson at mailbox.swipnet.se
Sun Nov 8 12:47:26 CET 2015
Joseph,
In addition to what Jan said:
* Remove the call to SaveNew(), since it isn't needed. SaveNew() should
only be used for classes that can save a list of objects to the same
location. SaveAsKeyStroke() is the SaveAs method to use for metatool
assignments.
* Put the AssignTextExpressionDef before the save, otherwise the
connection to the text expression def will not be saved to Finale.
Best regards,
Jari Williamsson
On 2015-11-08 11:07, Jan Angermüller wrote:
> As the online documentation says for AssignTextExpressionDef:
> "The mode for the object must be set to MTOOLMODE_EXPRESSION *in advance*. "
> So you need a SetMode before.
>
> Jan
>
> Am 08.11.2015 um 09:04 schrieb Joseph Weidinger:
>> I am creating a new text expression definition (ted) and that part
>> works. However it won't assign the metakey "a" (which is 65 apparently)
>>
>> I try to do this:
>> ~ ted defined and working great
>>
>> local ma = finale.FCMetatoolAssignment()
>> ma:SaveAsKeystroke(65)
>> ma:SaveNew()
>> ma:AssignTextExpressionDef(ted)
>>
>> ted:SaveNew()
>>
>> Maybe it has something to do with set mode? I coculdn't get anything
>> to work. Help appreciated! Thanks.
>>
>>
>>
>>
>> _______________________________________________
>> 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
>
More information about the JWLua
mailing list