Plug-in JW Lua (Beta)

Nouveautés, mises à jour, plug-ins, scripts, publications, web (Pas de questions ni de support dans ce forum ! Créez un sujet ailleurs svp)
michelp
Modérateur
Messages : 8539
Inscrit le : 1 avril 2011 à 12:26
Version(s) de Finale  : Finale anglais 27.4.1, 26.3.1
OS, RAM  : MacOsX 12.7.6, Mac Mini Intel i7 Dual 3 Ghz, 16 Go Ram. 2 écrans. JW Lua. RGP Lua
Homme/Femme  : H
Localisation : Belgique
Contact :

Re: Nouveau plug-in : JW Lua (Beta)

Message par michelp »

Mise à jour en version beta 0.05.

JW Lua beta 0.05 is now available for download from the beta download area.

Main new features in this beta are smartshape support, unlimited number dialog fields, popup support in dialogs, Instrument UUID support for staves.

Details:
* Methods and properties for Instrument UUID on Finale 2012
* Instrument UUID constants added for all "Common" instruments in the 2012 Score Manager, except drums+percussion+TAB instruments. The constants starts with FFUUID
* FCStaff (and FCCurrentStaffSpec) now works on Finale 2010 and Finale 2010 as well.
* Support for the following classes: FCSmartShape, FCSmartShapeCtrlPointAdjust, FCSmartShapeSegment, FCSmartShapeMeasureMark(s).
* "Smart Shape" filter added to the Class Browser.
* More setters added to FCStaff properties, so they can both be read and written.
* HideMode property added to FCStaff (and FCCurrentStaffSpec).
* SetLists method added to finenv.UserValueInput() objects. Popup controls can be set for any type.
* NumberedList type added to finenv.UserValueInput() objects.
* A finenv.UserValuenput() can now have virtually any number of fields.
* Dialog programming with finenv.UserValueInput() is now fully documented on the Wiki. Some features has been pushed to 0.06.
Michel
michelp
Modérateur
Messages : 8539
Inscrit le : 1 avril 2011 à 12:26
Version(s) de Finale  : Finale anglais 27.4.1, 26.3.1
OS, RAM  : MacOsX 12.7.6, Mac Mini Intel i7 Dual 3 Ghz, 16 Go Ram. 2 écrans. JW Lua. RGP Lua
Homme/Femme  : H
Localisation : Belgique
Contact :

Re: Nouveau plug-in : JW Lua (Beta)

Message par michelp »

Quelques heures à peine après la version Beta 0.05, mise à jour en version 0.06.

A quick beta update to beta version 0.06, which just adds FCClefDef(s).
The 18 clef definitions are loaded at positions 0-17. The VerticalAdjust property is what you need.
For now, you should be able to use the FirstClef property of FCStaff. It'll not work for clef changes along the staff though... That'll arrive in a later beta.

Best regards,

Jari Williamsson
Michel
Calbiac
Messages : 224
Inscrit le : 4 septembre 2011 à 19:07
Version(s) de Finale  : 27.3 0.140
OS, RAM  : Windows 11
Homme/Femme  : H
Localisation : Granville

Re: Nouveau plug-in : JW Lua (Beta)

Message par Calbiac »

Version 0.07 disponible

JW Lua beta 0.07 is now available for download. New/fixed in this build:

* "dumpproperties()" utility function added to the global namespace, that creates a table with all properties for an object. The "key" in the table is the property name, the "value" is the property value.
* "pairsbykeys()" iterator function added to the global namespace, which returns all key/value pairs sorted in key order (useful together with "dumpproperties()", see above).
* "loadall()" iterator function added to the global namespace, which is a shortcut approach to collection classes that supports the LoadAll() method.
* "loadallforregion()" iterator function added to the global namespace, which is a shortcut approach to collection classes that supports the LoadAllForRegion() method.
* Mac also has support for scrolling console output from the scripts now
* Fixed a Mac crash if the "Refresh All" button on the "Explorer" page would result in an empty list of scripts.
* Fixed a bug where alert boxes where not application modal on Windows
* Fixed a bug where modal states didn't affect the JW Lua main window in the correct way on Windows
* AlertOkCancel() method added to FCUI
* JW Lua max/min version can now be set in the plug-in definition
* Finale max/min version can now be set in the plug-in definition
* FCPageFormatPrefs class supported (use LoadScore() or LoadParts() methods to get the approriate data)
* Support for the FCStaffList(s), FCCustomSmartLineDef(s), FCTuplet(s), FCPageText(s), FCTextExpressionDef(s), FCCategoryDef(s), FCFontPrefs classes.
* FCDocument class with Save() method and Dirty property enabled
* finale.PARTID_UNKNOWN constant removed
* FCMusicRegion:CreateCells() method added
* FCPage:IsPortrait() method added
* FCString.Length read-only property added (maps to GetLength())
* ClassName() method added to all classes, which returns a string to Lua, such as "FCPage" etc.
* Feature added to the Manager page to create "script groups".
* Fixed a bug where deactivated script groups didn't stay activated when Finale was restarted.
* Fixed a issue where the "Plug-in Def" dialog box added an added line feed to "[[ ... ]]" comments.
* Added some more predefined category tags.
* The "Open..." button on the developer page will now ask if unsaved scripts should first be saved.
* Fixed a bug where script groups containing scripts without plug-in definition just displayed as "somefile.lua".


Best regards,

Jari Williamsson
michelp
Modérateur
Messages : 8539
Inscrit le : 1 avril 2011 à 12:26
Version(s) de Finale  : Finale anglais 27.4.1, 26.3.1
OS, RAM  : MacOsX 12.7.6, Mac Mini Intel i7 Dual 3 Ghz, 16 Go Ram. 2 écrans. JW Lua. RGP Lua
Homme/Femme  : H
Localisation : Belgique
Contact :

Re: Nouveau plug-in : JW Lua (Beta)

Message par michelp »

Mise à jour en version Beta 0.08.

JW Lua, beta version 0.08 is now available for download.

New in this version:
* FCFontInfo:CreateEnigmaString() added.
* FCMeasureNumberRegion(s) classes are supported (except for the methods related to enclosures).
* FCEntryMetrics and FCStrings classes supported.
* FCArticulation:CalcMetricPos() and FCExpression:CalcmetricPos() added

Download at:
https://finaletips.nu/index.php?option=c ... n&Itemid=2

Best regards,

Jari Williamsson
Michel
michelp
Modérateur
Messages : 8539
Inscrit le : 1 avril 2011 à 12:26
Version(s) de Finale  : Finale anglais 27.4.1, 26.3.1
OS, RAM  : MacOsX 12.7.6, Mac Mini Intel i7 Dual 3 Ghz, 16 Go Ram. 2 écrans. JW Lua. RGP Lua
Homme/Femme  : H
Localisation : Belgique
Contact :

Re: Nouveau plug-in : JW Lua (Beta)

Message par michelp »

Mise à jour en version 0.09.

JW Lua beta 0.09 is now available for download.

New and changed in this build:
* FCEnclosure is supported
* FCPageText: SaveTextBlock() method has been renamed to SaveTextString()
* FCPageText/FCMeasureText: TextID property has been renamed to TextBlockID
* StringID property added to FCPageText/FCMeasureText
* FCMeasureNumberRegion now has full support for all measure number region data
* FCMeasureNumberRegions:FindMeasure() method added
* Added 3 Create*FontInfo() methods to FCMeasureNumberRegion (to get a FCFontInfo object directly)
* Fixed FCPart template error in the Class Browser
* ItemCmper/ItemInci properties added for __FCInciOther based classes (read-only)
* FCEntryMetrics now have stem position properties
* Added FCFontInfo:CreateEnigmaStyleString() method and FCFontInfo.EnigmaStyles property
* Added support for these classes: FCMeasureText, FCCellFrameHold, FCDistancePrefs, FCSizePrefs
* Auto-created multiscript now has additional comments at the start and resets metrics before each subscript call

Download the beta version at:
https://finaletips.nu/index.php?option=c ... n&Itemid=2

Best regards,

Jari Williamsson
Michel
michelp
Modérateur
Messages : 8539
Inscrit le : 1 avril 2011 à 12:26
Version(s) de Finale  : Finale anglais 27.4.1, 26.3.1
OS, RAM  : MacOsX 12.7.6, Mac Mini Intel i7 Dual 3 Ghz, 16 Go Ram. 2 écrans. JW Lua. RGP Lua
Homme/Femme  : H
Localisation : Belgique
Contact :

Re: Nouveau plug-in : JW Lua (Beta)

Message par michelp »

Jari Williamsson s'investit apparemment à fond dans le développement de son plug-in JW Lua.
Sur un mode humoristique, et à l'occasion d'Haloween, il s'est amusé à créer un script pour vous faire peur et ruiner votre partition. C'est un gag, évidemment, réalisé avec JW Lua.
Michel
michelp
Modérateur
Messages : 8539
Inscrit le : 1 avril 2011 à 12:26
Version(s) de Finale  : Finale anglais 27.4.1, 26.3.1
OS, RAM  : MacOsX 12.7.6, Mac Mini Intel i7 Dual 3 Ghz, 16 Go Ram. 2 écrans. JW Lua. RGP Lua
Homme/Femme  : H
Localisation : Belgique
Contact :

Re: Nouveau plug-in : JW Lua (Beta)

Message par michelp »

Jari a mis en ligne sur Youtube une vidéo assez bluffante qui montre la puissance de JW Lua dans Finale 2014, avec la possibilité des créer une séquence d'actions concernant la mise en page (placement des expressions, lignes avancées / Smart Shapes, soufflets, etc…).
Michel
michelp
Modérateur
Messages : 8539
Inscrit le : 1 avril 2011 à 12:26
Version(s) de Finale  : Finale anglais 27.4.1, 26.3.1
OS, RAM  : MacOsX 12.7.6, Mac Mini Intel i7 Dual 3 Ghz, 16 Go Ram. 2 écrans. JW Lua. RGP Lua
Homme/Femme  : H
Localisation : Belgique
Contact :

Re: Nouveau plug-in : JW Lua (Beta)

Message par michelp »

Mise à jour en version 0.10.

"JW Lua beta version 0.10 is now available for download.

First, an important note regarding accidentals: With this new beta, the FCNote.Accidental property will continue to report the displayed accidental state correctly, even on Finale 2014. However, FCNote:GetAccidental() will NOT do that on Finale 2014. The method to use is called FCNote:CalcAccidental().

Major new addition to this beta is that scripts can now run in Finale's plug-in menu (in the same menu branch as JW Lua). You need to reboot Finale to rebuild the plug-in menu system.


New and fixed in this version:
* Bug fix: HorizontalAlignmentPoint and HorizontalJustification are swapped in FCTextExpressionDef
* Bug fix: Some ALIGNVERT_ constants were wrong.
* Bug fix: FCNoteheadMods:SaveAt() doesn't update data ID
* Added classes: FCStemMod, FCTextBlock, FCFileInfoText, FCTupletPrefs
* FCShapeExpressionDef positioning options implemented
* Smartshape metrics added to both cell and entry metrics
* FCNoteEntry.CombineRests property added (for Finale 2014 functionality)
* Bug fix: FCMeasure would cause a crash if properties are set to a non-loaded object
* Bug fix: Saving group scripts's default name will no longer default to the currently edited file
* Bug fix: FCNoteEntry.CheckAccidentals went bad
* Bug fix: Fixed Mac bug where finenv.Region() stopped to work in group scripts
* Static methods added to FCMeasures to add and insert new measures
* CreateTextBlock() added to FCPageText and FCMeasureText
* ContainsLuaString should no longer include a second parameter
* Bug fix: Don't allow document redraw in Sandbox mode (since it will destroy the Undo stack)
* FCStaff properties added: ShowTimeSignatures, ShowAugmentationDots, ShowBarlines, ShowChords, ShowClefs, ShowTextRepeats, ShowFretboards, ShowLyrics, ShowRepeats, ShowRests, ShowStaffLines, ShowScoreStaffName, ShowPartStaffName, ShowStems, ShowTies
* Scripts can be added to Finale's menu
* FCString:SetUnitValue() added
* FCNoteEntry::CalcAccidental added
* Group script now use loadfile() instead of dofile()
* TEXT_VERTICAL_ALIGN constants has been reordered for documentation purposes
* Shape commands have been disabled on Finale 2014, until the new data format for shapes is covered.
* Bug fix: Page text alignment and positioning doesn't work as expected on right-side pages when right page positioning is OFF

Download (both Win and Mac) at:
https://finaletips.nu/index.php?option=c ... n&Itemid=2

Best regards,

Jari Williamsson"
Michel
michelp
Modérateur
Messages : 8539
Inscrit le : 1 avril 2011 à 12:26
Version(s) de Finale  : Finale anglais 27.4.1, 26.3.1
OS, RAM  : MacOsX 12.7.6, Mac Mini Intel i7 Dual 3 Ghz, 16 Go Ram. 2 écrans. JW Lua. RGP Lua
Homme/Femme  : H
Localisation : Belgique
Contact :

Re: Nouveau plug-in : JW Lua (Beta)

Message par michelp »

D'autres scripts on été ajoutés sur le site Wiki par Jari.

Hello All!

I've now added a couple of new sample scripts to the Wiki. They should all work with beta 0.10.

* Text Block Line Spacing
* Set the File Info text
* Note Duration Statistics
* Change Tuplets from Preferences
* Append Note Entry

https://jwmusic.nu/jwplugins/wiki/doku.p ... ickscripts

Best regards,

Jari Williamsson
Michel
chris
Modérateur
Messages : 1236
Inscrit le : 28 novembre 2012 à 08:01
Version(s) de Finale  : v25 et 2014.5 anglais
OS, RAM  : PC - Windows 10
Homme/Femme  : H
Localisation : Région nantaise

Re: Nouveau plug-in : JW Lua (Beta)

Message par chris »

Bonjour

Je viens de réaliser mon premier script avec JW Lua. C'est vraiment très rapide, rien à voir avec Finale Script.

Mon script permet de créer un texte sur une "part", qui ne sera visible que sur celle-ci (par contre si on le crée sur le score, il sera visible partout). Le texte sera créé dans le bas gauche de la page active avec une police Arial de 8 pts. Bien entendu, tout cela est modifiable dans le code. Cela répond à un de mes besoins car je suis souvent obligé d'affecter un numéro à chacune de mes "parts", et j'étais obligé de refaire toujours les mêmes manips.

Donc je vous en fait part, peut-être que cela rendra service à certains. Par contre je ne suis pas programmeur, disons que j'en fais un peu à mes moments perdus, donc toute suggestion sera la bienvenue.
Texte sur Part.zip
(878 Octets) Téléchargé 119 fois
Chris
Verrouillé