As part of the release of three new scripting libraries for the ConsoleTools Lua framework, I today publish the Dynamics Tool Library (the two other releases cover Signpost Visibility and Beaming).
It contains equivalents to the commands found in the menu Edit › Notations › Dynamics, all of which can switch to their respectively required Dorico Mode automatically. In addition, it makes it possible to effectively assign direct keycommands to individual Dynamics.
The library furthermore offers ways to streamline user interaction with the various properties for Dynamics, including two dedicated tools for resetting vertical and horizontal offsets independently.
GIF – Create complex dynamics via keycommand:
GIF – Resetting vertical offsets only before aligning:
GIF – Streamlined property setting:
You can download the library below. The zip file contains the actual Lua script, and a PDF with the complete documentation:
ConsoleTools Tool Library - Dynamics 1.0.zip (817.3 KB)
Note: Do not try to run the lua file directly in Dorico (via the Script menu). You will need the ConsoleTools framework in order to use the library. However, the free limited version will suffice to try it out. You can find more information about ConsoleTools in this thread.
Feel free to ask any questions about the library here. (Any questions specifically about ConsoleTools should be posted in the thread about the framework itself, though.)
All freely available ConsoleTools Tool Libraries
As with previous releases, it should be noted that this library is somewhat of a “public beta”. If you find that something does not work as should be expected from the documentation, please feel free to get in touch with me. Further down the road, I plan to re-include the library (with any bug fixes) in a larger one, which will offer a variety of other script-enhanced Dorico tasks.