<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
There was an old thread by Bart from Dec. 2014 about "vertical
resizing" in FCStaffSystem:CalcHeight().<br>
I now had a similar problem and needed to figure out the relation
between CalcHeight(false) and CalcHeight(true).<br>
It seems to be this one:<br>
<br>
CalcHeight(true) =
(CalcHeight(false)-TopMargin)*ResultingSystemScaling+TopMargin<br>
<br>
Code snippet for a document with 85% resulting scaling:<br>
local staffsystemslookup=finale.FCStaffSystemsLookup ()<br>
local staffsystems = staffsystemslookup:GetCurrentPartStaffSystems
()<br>
local ResultingSystemScaling=0.854166 --taken from FCPageFormatPrefs<br>
staffsystem=staffsystems:FindMeasureNumber(12)<br>
print(staffsystem:CalcHeight(true).."="..(staffsystem:CalcHeight(false)-staffsystem.TopMargin)*ResultingSystemScaling+staffsystem.TopMargin)<br>
<br>
But I have no idea what this relation means practically. <br>
Why should I take out TopMargin from scaling while BottomMargin is
scaled?<br>
Anyone?<br>
<br>
Best,<br>
Jan<br>
<br>
<br>
<div class="moz-cite-prefix">Am 04.12.2014 um 18:45 schrieb Bart
Visser:<br>
</div>
<blockquote cite="mid:79E759A7-925B-4A4D-A9F1-0ED50B6B25BC@me.com"
type="cite">
<pre wrap="">Hi Jan,
Hi Jan,
The documentation says "verticalresizeIf set, the vertical resizing will be taken into account in the calculation. If not set, the returned value will be as a non-resized staff system."
I took that as meaning that the Page Resize would be taken into account, but I was wrong. The page resize is set to 80%. And 80% of 320 = 256. So that should be it. Thanks!
Bart
</pre>
<blockquote type="cite">
<pre wrap="">Op 4 dec. 2014, om 17:43 heeft Jan Angermüller <a class="moz-txt-link-rfc2396E" href="mailto:jan@angermueller.com"><jan@angermueller.com></a> het volgende geschreven:
Hi Bart,
is the page and system scaled to 100% ?
Otherweise you may have to take into account
page or system scaling factors.
Jan
Am 04.12.2014 17:38, schrieb Bart Visser:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Jari,
I would like to place a page text 1,5cm blow the last staff system of a page. In order to do this, I'm trying to calculate the sum of the height of every staff system on the page. If I use the FCStaffSystem:CalcHeight() function I get an unexpected result:
local s = finale.FCStaffSystem()
s:Load(2)
local height = s:CalcHeight(true)
print(height) --> 320 but should be ±255 (2,25 cm)
Would it be possible for you to explain which parts of a StaffSystem are used in the CalcHeight-function?
- BottomMargin?
- TopMargin?
- SpaceAbove?
- StaffHeight? (with a calculation to get a EPVU32?)
Thanks,
Bart
_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<pre wrap="">
--
Jan Angermüller
Jevenstedter Str. 80
22547 Hamburg
Tel. 040 - 28 94 84 82
<a class="moz-txt-link-abbreviated" href="http://www.angermueller.com">www.angermueller.com</a>
_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<pre wrap="">
_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
</body>
</html>