<div dir="ltr">Hi Jari, welcome back and thanks for all you do.<div><br></div><div>I have a few things:</div><div><div><br></div><div>1. Can you use Lua in expressions and articulations to ASSIGN metatools / keys? I couldn't find it anywhere.</div><div><br></div><div>2. ALIGNMENT IN MEASURE NUMBER REGIONS</div><div>I'm pretty sure none of these work for whatever reason. Justify works but alignment does not. Just punch in the script below into any document and see.</div><div><br></div><div>If I set the value to 1, for example (finale.MNALIGN_CENTER), the value always remains 0 (finale.MNALIGN_LEFT). If I change it manually in the GUI, and get the value again, it will read 1 (center). But I cannot change it to 1 with Lua.</div><div><br></div><div>So these method don't work.</div><div>SetMultiMeasureAlignment</div><div>SetMultipleAlignment</div><div>SetStartAlignment (presumably)</div><div><br></div><div><<<<<<<<<<<<<<<<script>>>>>>>>>>>>>>>></div><div>-- delete all current regions</div><div>local mNumRegions = finale.FCMeasureNumberRegions()</div><div>mNumRegions:LoadAll()</div><div>local region = finale.FCMeasureNumberRegion()</div><div><br></div><div>for k = mNumRegions.Count,1,-1 do</div><div>   region:Load(k)</div><div>   region:DeleteData(k)</div><div>end</div><div><br></div><div>-- ====== the constants ======</div><div>-- MNALIGN_CENTER = 1</div><div>-- MNALIGN_LEFT = 0</div><div>-- MNALIGN_RIGHT = 2</div><div>-- MNJUSTIFY_CENTER = 2</div><div>-- MNJUSTIFY_LEFT = 0</div><div>-- MNJUSTIFY_RIGHT = 1</div><div><br></div><div>-- make new test region</div><div>newRegion = finale.FCMeasureNumberRegion()</div><div>if newRegion then</div><div><br></div><div><span style="white-space:pre-wrap">   </span>-- basics</div><div><span style="white-space:pre-wrap">        </span>newRegion.StartMeasure = 1</div><div>    newRegion.EndMeasure = 999</div><div>    newRegion:SetShowMultiples(true)</div><div><br></div><div>    -- by default...</div><div><span style="white-space:pre-wrap">     </span>print("the current multiple alignment is", newRegion:GetMultipleAlignment(false)) -- reads 0, GUI shows Left</div><div><span style="white-space:pre-wrap">   </span>print("the current multiple justification is", newRegion:GetMultipleJustification(false)) -- reads 0, GUI shows Left</div><div><br></div><div><span style="white-space:pre-wrap">  </span>-- now I'll set them both to center</div><div><span style="white-space:pre-wrap">  </span>newRegion:SetMultipleAlignment(finale.MNALIGN_CENTER, false) -- should make it CENTER, or 1</div><div><span style="white-space:pre-wrap">      </span>newRegion:SetMultipleJustification(finale.MNJUSTIFY_CENTER, false) -- should make it CENTER, or 2</div><div><br></div><div><span style="white-space:pre-wrap">       </span>print("the current multiple alignment is", newRegion:GetMultipleAlignment(false)) -- reads 0 still instead of 1, GUI shows Left still...</div><div><span style="white-space:pre-wrap">       </span>print("the current multiple justification is", newRegion:GetMultipleJustification(false)) -- reads 2, correct, GUI shows Center, correct</div><div><span style="white-space:pre-wrap">       </span></div><div><span style="white-space:pre-wrap"> </span>-- now let's try both to right</div><div><span style="white-space:pre-wrap">       </span>newRegion:SetMultipleAlignment(finale.MNALIGN_RIGHT, false) -- should make it RIGHT, or 2</div><div><span style="white-space:pre-wrap">        </span>newRegion:SetMultipleJustification(finale.MNJUSTIFY_RIGHT, false) -- should make it RIGHT, or 1</div><div><br></div><div><span style="white-space:pre-wrap"> </span>print("the current multiple alignment is", newRegion:GetMultipleAlignment(false)) -- reads 0 still instead of 2, GUI shows Left still...</div><div><span style="white-space:pre-wrap">       </span>print("the current multiple justification is", newRegion:GetMultipleJustification(false)) -- reads 1, correct, GUI shows Right, correct</div><div><span style="white-space:pre-wrap">        </span>newRegion:SaveNew()</div><div>end</div></div><div><br></div><div><<<<<<<<<<<<<<<<script>>>>>>>>>>>>>>>></div><br style="font-size:12.8000001907349px"></div>