[JW Lua] Creating new text expression category

Robert Patterson robert at robertgpatterson.com
Mon Jan 10 14:06:13 CET 2022


Also, I just realized the documentation may not be clear. The "type" is not
just "some type". It must be one of the CATEGORY_DEDAULTIDS constants. In
your case, probably TECHNIQUETEXT.

On Mon, Jan 10, 2022 at 6:45 AM Robert Patterson <
robert at robertgpatterson.com> wrote:

> SaveNewWithType should work in RGP Lua 0.58+. The others will not. If you
> have an example of SaveNewWithType that fails to create a new category,
> please post a sample script that fails.
>
> However, creating a new category is just the beginning. To assign
> expressions to it requires additional code for each expression.
>
>
> On Mon, Jan 10, 2022 at 1:29 AM Carl Vine <carlvine at iinet.net.au> wrote:
>
>> Can anyone help?
>>
>> I’m loading the standard  TECHNIQUETEXT FCCategoryDef (ItemNo 5),
>> changing the name and some values, then trying to Save() as a new category.
>>
>> SaveNew(), SaveAs(new_unique_id) and SaveNewWithType(some_type) all fail.
>> Save() succeeds but doesn’t change or update the CategoryDefs collection.
>>
>> Carl
>>
>>
>> _______________________________________________
>> 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/20220110/af23daad/attachment.html>


More information about the JWLua mailing list