<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Why not use the defined constants instead of hardwiring numbers? Here are the current values:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>MNALIGN_CENTER = 1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>MNALIGN_LEFT = 0<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>MNALIGN_RIGHT = 2<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>MNJUSTIFY_CENTER = 2<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>MNJUSTIFY_LEFT = 0<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>MNJUSTIFY_RIGHT = 1<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Use them like this:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>region:SetStartAlignment(finale.MNALIGN_LEFT)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>They may not be correct. Jari can verify that.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Charles Lawrence<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> JWLua [mailto:jwlua-bounces@jwmusic.nu] <b>On Behalf Of </b>Joseph Weidinger<br><b>Sent:</b> Monday, May 4, 2015 9:55 AM<br><b>To:</b> Jw Lua Mailing List<br><b>Subject:</b> [JW Lua] FCMeasureNumberRegion alignments not changing<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>I am making a script that makes new measure number regions. It was going great until I started to change the position with:<o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>SetStartAlignment()<o:p></o:p></p></div><div><p class=MsoNormal>SetStartJustification()<o:p></o:p></p></div><div><p class=MsoNormal>SetMultiMeasureAlignment()<o:p></o:p></p></div><div><p class=MsoNormal>SetMultiMeasureJustification()<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>The documentation seems weird to me ( <a href="http://www.finaletips.nu/frameworkref/group__lua__classes.html#ga934c898f4ebbf7cbca683e424c641462">http://www.finaletips.nu/frameworkref/group__lua__classes.html#ga934c898f4ebbf7cbca683e424c641462</a> ). I gathered it needed a number argument and based on a table I saw in your PDK, it looks like 0 should be Left, 1 should be Center, 2 should be Right. However, the actual order is not Left Center Right but Left Right Center. Furthermore, passing these numbers into SetStartAlignment() and SetMuliMeasureAlignment() don't affect it at all. It simply defaults to Left every time.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Another way of seeing it based on my experiments:<o:p></o:p></p></div><div><div><p class=MsoNormal>start<o:p></o:p></p></div><div><p class=MsoNormal>0 0 left left<o:p></o:p></p></div><div><p class=MsoNormal>1 1 left right<o:p></o:p></p></div><div><p class=MsoNormal>2 2 left center<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>multimeasure<o:p></o:p></p></div><div><p class=MsoNormal>0 0 left left<o:p></o:p></p></div><div><p class=MsoNormal>1 1 left right<o:p></o:p></p></div><div><p class=MsoNormal>2 2 left center<o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>So to summarize, it seems no number passed into SetStartAlignment or SetMultiMeasureAlignment (and presumably SetMultipleAlignment) changes the value to anything other than left. Am I missing something...?<o:p></o:p></p></div></div></div></body></html>