[JW Lua] TextRepeats
Chris
marcel.denio at gmail.com
Sun Sep 21 15:54:34 CEST 2014
Hello Jari
Is this the right way to assign TextRepeats.
------------------------------------------------------
local trd = finale.FCTextRepeatDef()
if not trd:Load(1) then return end
local tr = finale.FCTextRepeat()
tr:AssignTextRepeatDef(trd)
tr.Action = finale.TEXTREPACTION_NEVERJUMP
tr.AutoUpdateTarget = true
tr.HorizontalPos = 0
tr.IndividualPositioning = false
tr.JumpIfIgnore = false
tr.ResetOnRepeat = false
tr.TargetTrigger = finale.TEXTREPTARGET_DEFID
tr.Target = 1
tr.TotalPasses = 1
tr.VerticalPos = 57
tr.ShowMode =finale.REPSHOW_TOPSTAFF
if not tr:SaveNew(1) then return end -- measure 1
local m = finale.FCMeasure()
if not m:Load(1) then return end
m.TextRepeatFlag = true
m:Save()
--------------------------------------------------------------
And when you can :
- FCTextRepeatText (for create texts in FCTextRepeatDef)
- and the fretboards (But there is probably more urgent things)
Thanks
Chris
More information about the JWLua
mailing list