[JW Lua] Page/Part questions
Jari Williamsson
jari.williamsson at mailbox.swipnet.se
Mon Sep 23 14:14:41 CEST 2013
On 2013-09-23 01:10, Charles O. Lawrence wrote:
> You said " SetCurrent() is used to re-program a part object to the part
> currently in focus." Could you elaborate? Sorry, I still don't get it.
It's perhaps not a method you'd use that often, but I've implemented it
in the C++ framework since I needed it at some point.
Here's an example:
---
function processapart(part)
part:SwitchTo
-- Do same editing of the part
part:SwitchBack()
end
local thepart = finale.FCPart(PARTID_SCORE)
-- Process the score:
processapart(thepart)
thepart:SetCurrent()
-- Process the part (or score) that is currently in the focus:
processapart(thepart)
---
On a related note, I just discovered that the JW Lua hook to the FCPart
constructor is slightly wrong. In JW Lua, it should always require one
parameter constant. Although this is a quite harmless bug, it will be
fixed in 0.07.
Best regards,
Jari Williamsson
More information about the JWLua
mailing list