[JW Lua] Modifying beams

Thomas Weber thomas.weber at notengrafik.com
Wed Sep 9 18:19:19 CEST 2015


Dear experts,

I tryed using a snippet from the class browser (a value and bm:Save() was added):


for noteentry in eachentry(finenv.Region()) do
    local bm = finale.FCBeamMod()
    bm:SetNoteEntry(noteentry)
    if bm:LoadFirst() then
        bm.LeftVerticalOffset = 100
        bm:Save()
    end
end


Interestingly, this does only have a visible effect if the beam has been touched manually with a special tool beforehand.

I found that in order to make FCSmartShapeSegment::SetEndpointOffsetX have an effect, one has to flag the FCSmartShapeSegment with FCSmartShapeSegment::|SetCustomOffset||| first.  I wondered whether something similar was needed to work with FCBeamMod, but I didn't see a member that seemed to have a similar purpose to |SetCustomOffset||.

What am I missing?

Thanks!
Thomas Weber
|

[1] http://www.jwmusic.nu/jwplugins/wiki/doku.php?id=jwlua:harpglisssample




More information about the JWLua mailing list