[JW Lua] FCBeamMod: how to set left/right horizontal offset -> only vertical works fine
Jan Angermüller
jan at angermueller.com
Tue Dec 19 13:55:09 CET 2017
Jari et al.,
has anybody had success in changing the horizontal offset of beams?
The following script doesn't do anything, but I would have expected the
primary beam to become longer.
If I change Horizontal to Vertical (i.e. ->
SetRightVerticalOffset/SetLeftVerticalOffset), the script works fine.
for e in eachentrysaved(finenv.Region()) do
local beammod=finale.FCBeamMod(false)
beammod:SetNoteEntry(e)
if beammod:LoadFirst() then
beammod:SetRightHorizontalOffset(64)
beammod:SetLeftHorizontalOffset(64)
beammod:Save()
else
beammod:SetBeamNumber(1)
beammod:SetDefaultMode()
beammod:SetRightHorizontalOffset(64)
beammod:SetLeftHorizontalOffset(64)
beammod:SaveNew()
end
end
Best,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20171219/601a0b7a/attachment.htm>
More information about the JWLua
mailing list