<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
To check which functions are really available in JW Lua, look into
the class browser.<br>
It also holds sample code for many functions.<br>
<br>
<img src="cid:part1.67790540.4BCD764B@angermueller.com" alt=""><br>
<br>
Jan<br>
<a class="moz-txt-link-freetext" href="https://elbsound.studio/jw-lua-scripts.php">https://elbsound.studio/jw-lua-scripts.php</a><br>
<br>
<div class="moz-cite-prefix">Am 26.01.2018 um 00:31 schrieb M. R.
Miller:<br>
</div>
<blockquote type="cite"
cite="mid:BY2PR19MB04888A8A122B095FC2019ADBADE10@BY2PR19MB0488.namprd19.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0,
0, 0, 0);">
Thanks for the quick response, Jan! That works perfectly.</div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0,
0, 0, 0);">
<span title="Search for suggestions" class=""><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0,
0, 0, 0);">
<span title="Search for suggestions" class="">I had ignored it
because of the documentation. Not sure if there's a place to
file documentation issues, but FCArticulation::CalcMetricPos
should be marked as Lua-supported. Metric position also made
me think musical position within the measure rather than
graphical position, despite the FCPoint* argument. A more
clear doc text could maybe be something like:</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0,
0, 0, 0);">
<span title="Search for suggestions" class=""><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0,
0, 0, 0);">
<span title="Search for suggestions" class="">"Calculate the
coordinates of the articulation's handle in page-relative
EVPU."</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0,
0, 0, 0);">
<span title="Search for suggestions" class=""><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0); background-color: rgba(0,
0, 0, 0);">
<span title="Search for suggestions" class="">- Mike</span></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
face="Calibri, sans-serif" color="#000000"><b>From:</b> JWLua
<a class="moz-txt-link-rfc2396E" href="mailto:jwlua-bounces@jwmusic.nu"><jwlua-bounces@jwmusic.nu></a> on behalf of Jan Angermüller
<a class="moz-txt-link-rfc2396E" href="mailto:jan@angermueller.com"><jan@angermueller.com></a><br>
<b>Sent:</b> Thursday, January 25, 2018 3:17 PM<br>
<b>To:</b> The JW Lua script plug-in.<br>
<b>Subject:</b> Re: [JW Lua] Page-relative Units</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">CalcMetricPos() is the
method which exists for both FCArticulation and FCExpression.<br>
In FCSmartShape it's similar: CalcLeft/RightCellMetricPos for
measure-attached, CalcLeft/RightEntryMetricPos for note-attached
smart shapes.<br>
<br>
Jan<br>
<br>
<div class="x_moz-cite-prefix">Am 25.01.2018 um 20:53 schrieb M.
R. Miller:<br>
</div>
<blockquote type="cite">
<style type="text/css" style="display:none">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div style="font-family:Calibri,Helvetica,sans-serif;
font-size:12pt; color:rgb(0,0,0);
background-color:rgba(0,0,0,0)">
<div>Hey all,</div>
<div><br>
</div>
<div>Is there a good way to get an articulation's position
relative to the page? I see FCArticulation::GetVerticalPos
but this appears to be an offset relative to different
anchors based on the articulation definition's
AutoPosSide.</div>
<div><br>
</div>
<div>Same question for FCExpression which has a different
alignment scheme but similarly only gives offsets. And I
can't seem to find any positioning info about smart
shapes.</div>
<div><br>
</div>
<div>For context, I'm writing a Lua script to draw a
bounding box that encompasses all the elements in a
region. I've got it working with notes and rests using
FCEntryMetrics and FCCellMetrics but can't seem to find a
convenient way to get the articulation and expression
placement in the same page-relative coordinates.</div>
<div><br>
</div>
<div>Any suggestions?</div>
<div><br>
</div>
<div>Thanks!</div>
<div>- Mike</div>
<div><br>
</div>
<br>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
JWLua mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu" moz-do-not-send="true">JWLua@jwmusic.nu</a>
<a class="x_moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" moz-do-not-send="true">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
<br>
</body>
</html>