[JW Lua] AddGuide function doesn't work properly

Artem Roschenko roschenkoartem at gmail.com
Mon Jan 17 18:07:49 CET 2022


I just checked out the creation of Guides in Finale v25.0.0.6858.
It works fine! So the problem came with version 26.

Artem.

On Mon, Jan 17, 2022 at 1:00 PM <jwlua-request at jwmusic.nu> wrote:

> Send JWLua mailing list submissions to
>         jwlua at jwmusic.nu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
> or, via email, send a message with subject or body 'help' to
>         jwlua-request at jwmusic.nu
>
> You can reach the person managing the list at
>         jwlua-owner at jwmusic.nu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of JWLua digest..."
>
>
> Today's Topics:
>
>    1. AddGuide function doesn't work properly (Artem Roschenko)
>    2. Re: AddGuide function doesn't work properly (Robert Patterson)
>    3. Re: RGP Lua 0.59 Released (Robert Patterson) (Robert Patterson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 16 Jan 2022 15:33:36 +0200
> From: Artem Roschenko <roschenkoartem at gmail.com>
> To: jwlua at jwmusic.nu
> Subject: [JW Lua] AddGuide function doesn't work properly
> Message-ID:
>         <
> CADaj7WMB6khJX48KJE1K5Sw3o8qf0owDxoQCq3G3Y_m28r0XsQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> When I try to add a new FCGuide to an empty FCGuides collection,
> it works fine, but if there are some guides (of the same type -
> horizontal or vertical), it cannot add a new one.
> I think this problem started in Final 26 and
> relevant so far for both JWLua 0.54 and RGP 0.59
>
> Example:
> local ggp = finale.FCGridsGuidesPrefs()
> ggp:Load(1)
> local hg = ggp:GetHorizontalGuides()
> hg:AddGuide(640)
> ggp:Save()
>
> Artem.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20220116/025ae74b/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 2
> Date: Sun, 16 Jan 2022 12:16:37 -0600
> From: Robert Patterson <robert at robertgpatterson.com>
> To: "The JW Lua script plug-in." <jwlua at jwmusic.nu>
> Subject: Re: [JW Lua] AddGuide function doesn't work properly
> Message-ID:
>         <
> CAACnces+MJAyFd9i+Lma7O+qPS-SobvsaSuaamvhSR_vpYDK_Q at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I am seeing this also in versions of Finale 26.2 and higher. If you have an
> earlier Finale version you can test, please confirm that it works there.
>
> I'm still researching why this is happening in F26.2+.
>
> On Sun, Jan 16, 2022 at 7:35 AM Artem Roschenko <roschenkoartem at gmail.com>
> wrote:
>
> > When I try to add a new FCGuide to an empty FCGuides collection,
> > it works fine, but if there are some guides (of the same type -
> > horizontal or vertical), it cannot add a new one.
> > I think this problem started in Final 26 and
> > relevant so far for both JWLua 0.54 and RGP 0.59
> >
> > Example:
> > local ggp = finale.FCGridsGuidesPrefs()
> > ggp:Load(1)
> > local hg = ggp:GetHorizontalGuides()
> > hg:AddGuide(640)
> > ggp:Save()
> >
> > Artem.
> > _______________________________________________
> > 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/20220116/ec590881/attachment-0001.html
> >
>
> ------------------------------
>
> Message: 3
> Date: Sun, 16 Jan 2022 16:15:39 -0600
> From: Robert Patterson <robert at robertgpatterson.com>
> To: "The JW Lua script plug-in." <jwlua at jwmusic.nu>
> Subject: Re: [JW Lua] RGP Lua 0.59 Released (Robert Patterson)
> Message-ID:
>         <
> CAACncesePrrfP50RUFS_Bz2hCbwzeTWmEs3FRHmWkTsQ9+FWsw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Could you send a sample musx file to go with that script? I'm not sure
> what's going on. FWIW: the bottom composite is almost always 1-element per
> group. And it's usually only used where you are combining multiple full
> meters like (2/4) + (3/8).
>
> On Sun, Jan 16, 2022 at 4:54 AM Carl Vine <carlvine at iinet.net.au> wrote:
>
> > This is amazing Robert - mind-boggling complexity.
> >
> > Trying to wrap my head around Time Signatures. I don?t suppose you have a
> > sample script running through the nested elements in Composite TimeSigs?
> >
> > I think I?ve fathomed most of it but can?t get
> > time_sig_bot:GetGroupElementBeatDuration(0,0) to work, even though the
> > group and element numbers are shown to exist. Keeps throwing a ?nil
> value?
> > exception. Oddly, ?SetGroupElementBeatDuration()? does work.
> >
> > ?=======
> > if time_sig.CompositeBottom then
> >     local ccb = time_sig:CreateCompositeBottom()
> >     local num_bot_groups = ccb:GetGroupCount()
> >     res=res.."Comp bot = ".. num_bot_groups .. " groups - "
> >
> >     for i = 0,num_bot_groups-1 do
> >         local x = ccb:GetGroupElementCount(i)
> >         res=res.."bot"..i.."= "..x.." els/ \n"
> >         for j = 0, x-1 do
> >             res=res..ccb:GetGroupElementBeatDuration(i,j).."/ "
> >         end
> >     end
> > end
> > finenv.UI():AlertNeutral(plugindef(), res)
> > ?=======
> >
> > Carl
> >
> > On 15 Jan 2022, at 10:00 pm, jwlua-request at jwmusic.nu wrote:
> >
> > Send JWLua mailing list submissions to
> > jwlua at jwmusic.nu
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
> > or, via email, send a message with subject or body 'help' to
> > jwlua-request at jwmusic.nu
> >
> > You can reach the person managing the list at
> > jwlua-owner at jwmusic.nu
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of JWLua digest..."
> >
> >
> > Today's Topics:
> >
> >   1. RGP Lua 0.59 Released (Robert Patterson)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Fri, 14 Jan 2022 10:31:16 -0600
> > From: Robert Patterson <robert at robertgpatterson.com>
> > To: "The JW Lua script plug-in." <jwlua at jwmusic.nu>
> > Subject: [JW Lua] RGP Lua 0.59 Released
> > Message-ID:
> > <CAACncetAD9LXkWUhXeAvUFxmZikFAijMAv5TM9GAaafta3tgaA at mail.gmail.com>
> > Content-Type: text/plain; charset="utf-8"
> >
> > RGP Lua version 0.59 is now available for download on the download page
> > <https://robertgpatterson.com/-fininfo/-rgplua/rgplua.html>.
> >
> > Enhancements include:
> >
> >   - Full support for adding, changing, and deleting mid-measure clefs.
> >   (See FCCell.)
> >   - Full support for adding, changing, and deleting composite time
> >   signatures, both measure-level and for independent time signatures.
> >   - Various new methods and properties on FCCellMetrics, FCArticulation,
> >   FCDistancePrefs, FCStrings, and FCFontInfo. (See version history for
> >   details.)
> >   - Added system- and folder-level prefix script options (perhaps useful
> >   for adding to PATH and/or CPATH require paths).
> >   - Bug fixes.
> >
> > Happy scripting,
> > Robert
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > URL: <
> >
> http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20220114/d4cb78e7/attachment-0001.html
> > >
> >
> > ------------------------------
> >
> > Subject: Digest Footer
> >
> > _______________________________________________
> > JWLua mailing list
> > JWLua at jwmusic.nu
> > http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
> >
> >
> > ------------------------------
> >
> > End of JWLua Digest, Vol 87, Issue 6
> > ************************************
> >
> >
> >
> >
> >
> > 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/20220116/d975af95/attachment-0001.html
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>
> ------------------------------
>
> End of JWLua Digest, Vol 87, Issue 8
> ************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20220117/4d2455f8/attachment.htm>


More information about the JWLua mailing list