[JW Lua] Applying MENUCMD_NOTESPACING to non-selected measures

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Mon Jul 6 16:36:10 CEST 2015


Jan,

After finenv.Region():SetFullDocument(), use a subsequent 
SetInDocument() for the region object. I think you need an explicit 
region object for the SetFullDocument+SetInDocument(), since 
SetFullDocument() sets the values internally for the object and 
SetInDocument() applies the object's values on the document view.


Best regards,

Jari Williamsson


On 2015-05-30 21:15, Jan Angermüller wrote:
> Jari,
>
> I have a document with no measures selected and would like to re-do the
> music spacing with:
>
> finenv.UI():MenuCommand(finale.MENUCMD_NOTESPACING )
>
> As no measures were selected nothing happens when I call the script.
>
> Now if I insert
> finenv.Region():SetFullDocument()
> before calling the MenuCommand still nothing happens.
>
> Is there anything I can do to tell the menucommand that it shall process
> the full document ?
> Another idea would be to add a notespacing function to FCMusicRegion -
> like you did with RebarMusic and RebeamMusic.
>
> (Making the plug-in "Require selection"-dependent is not a good option
> in this case as this plug-in will always process the full document.)
>
> All the best,
> Jan
>
>
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>






More information about the JWLua mailing list