[JW Lua] FCMusicRegion:SetFullMeasureStack() only works when a region measure has been set before
Jan Angermüller
jan at angermueller.com
Thu May 26 12:47:25 CEST 2016
Jari,
I just noticed that FCMusicRegion:SetFullMeasureStack() does not work,
if both the StartMeasure and EndMeasure of the region have not been set
yet. I think the current documentation for SetFullMeasureStack is a bit
unclear at the moment. It only mentions:
"This is dependent of the current staff/instrument list for the region."
Or is it a bug of SetFullMeasureStack() ?
See script and results below.
Best,
Jan
local region=finale.FCMusicRegion()
print("Before",region.StartStaff,region.EndStaff,region.StartSlot,region.EndSlot)
region:SetFullMeasureStack()
print("After calling
FMS",region.StartStaff,region.EndStaff,region.StartSlot,region.EndSlot)
region.EndMeasure=5 --the StartMeasure still has not been set!
region:SetFullMeasureStack()
print("After setting the EndMeasure and calling
FMS",region.StartStaff,region.EndStaff,region.StartSlot,region.EndSlot)
Running [Unnamed Script] ======>
Before 0 0 0 0
After calling FMS 0 0 0 0
After setting the EndMeasure and calling FMS 1 55 1 50
<======= [Unnamed Script] succeeded (Processing time: 0.000 s).
More information about the JWLua
mailing list