<div dir="ltr"><div>Maybe the difference is that I am using F26.3 (Mac) to import the file, because I am seeing correct behavior from LoadAt. But clearly this is *not* a F02 file because it has a .musx extension. If you want to send the original .mus I will be happy to try it.</div><div><br></div><div>That said, the thing I would check before anything else is the note detail flag on that entry. (You can check it with...the enigma text dump plugin!) Loss of entry bits is common. Finale itself tends to ignore them, but I notice the PDK Framework does not. (You can download the PDK Framework source code for yourself at Jari's website. It's a very old version, but LoadAt is in there.)</div><div><br></div><div>So the first thing I would do to repair the file is set the note entry bit and then see if LoadAt starts behaving properly again.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 8, 2020 at 11:51 AM Jan Angermüller <<a href="mailto:jan@angermueller.com">jan@angermueller.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
It doesn't work with the Finale test file from the first email (I
have attached it again).<br>
That one was created with Finale 2002a and probably is not
compatible with current Finale versions.<br>
See my two screenshot videos with these weird behaviours in the
first email.<br>
<br>
1.) This file returns false with LoadAt.<br>
2.) But it actually seems to have a hidden value -54 EVPU (which can
be seen in the Youtube videos)<br>
3.) Through manual movement I can reproduce this -54 EVPU value. <br>
4.) The anchor point of the accidental suddenly jumps when I click
it -> see video. It seems that the hidden FCAccidentalMod used in
this document had a different alignment option which is not
available in Finale anymore and causes this weird behaviour (as you
said and as I guessed it probably has to do with a deprecated Finale
option which is not correctly imported into Finale 2014)<br>
5.) But I cannot get this value automatically: i.e. when I load the
accidtest.musx document and run the script immediately, it will
always return 0 EVPU and not -54 EVPU. So the FCAccidentalMod seems
to be somehow hidden. <br>
-> That's what my question is about.<br>
<br>
As I said my Perfect Layout accidental placement script normally
works. This is the first document where the automatic
FCAccidentalMod reading doesn't work. The code snippet that I posted
is just for testing purposes. The Perfect Layout script is much more
complex, but it's not relevant here.<br>
<br>
What I want is:<br>
- Read the current horizontal position of the accidental (usually 0
EVPU as there is usually no FCAccidentalMod, if there is an
FCAccidentalMod read this value). He<br>
- Change the current position by adding a small value (e.g. 10 EVPU)<br>
- Accidtest returns the wrong horizontal position by default<br>
<br>
If I add a value to this accidtest.musx document, it moves the
accidental to the wrong position.<br>
Because 0 EVPU (which usually is the position before the notehead)
is in this case the wrong reference position.<br>
When I save an accidental mod with HorizontalPos=1 EVPU to this
accidtest, it moves the accidental by 55 EVPU and not by 1 EVPU.<br>
<br>
Jan<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div>Am 08.07.2020 um 18:33 schrieb Robert
Patterson:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>With your script, running on your file,
FCAccidentalMod:LoadAt returns true if there is an acci mod
and false if there isn't one. What's the issue?</div>
<div><br>
</div>
<div>If the question is, "where did that -54 come from?", the
answer is Finale calculated it and put it there. I wouldn't
worry about where it came from. Instead, I would set the value
you want and save it. Don't forget to set the note detail flag
on FCNoteEntry.<br>
</div>
<div><br>
</div>
<div>If you are not seeing the results you think you should see
after running your script, use my plugin to compare the
changes made by your script to those identical changes done
manually. That will show you what your script is lacking.</div>
</div>
</blockquote>
<br>
</div>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>