[JW Lua] Hairpin vertical adjustment...
Chris
marcel.denio at gmail.com
Thu Jul 7 07:39:28 CEST 2016
Simon
Here is the solution
---------------------------------------
local region = finenv.Region()
local marks = finale.FCSmartShapeMeasureMarks()
marks:LoadAllForRegion(region)
for mark in each(marks) do
local smartshape = mark:CreateSmartShape()
if (smartshape:GetShapeType() == finale.SMARTSHAPE_CRESCENDO)
or (smartshape:GetShapeType() == finale.SMARTSHAPE_DIMINUENDO) then
smartshape:SetMakeHorizontal (true)
local leftseg = smartshape:GetTerminateSegmentLeft()
leftseg:SetEndpointOffsetX(675)
smartshape:Save()
end
end
---------------------------------------
Best regards
Chris
More information about the JWLua
mailing list