[JW Lua] metatools assignments

Jan Angermüller jan at angermueller.com
Sun Nov 8 11:07:02 CET 2015


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20151108/65d3328b/attachment-0002.html>


More information about the JWLua mailing list