[JW Lua] More Page Text Fun

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Thu Oct 24 15:47:48 CEST 2013


On 2013-10-24 12:37, Dave Foster wrote:
> 5.	How can you change the justification of the text of a
> Page Text object? I guess this might need FCTextBlock to
> be hooked up to Lua? If so, how would you access that
> FCTextBlock object from the PageText - there is a
> GetTextBlockID() method in FCPageText which gives an
> index, but I can't see a way to access and edit it,
> short of creating a new one and setting it with SaveNewTextBlock()?

I'll support FCTextBlock in the next beta.

> 6.	Is there a way to hide the page text in the
> current part / score? This would be for creating text that is
> visible in the score but not the parts, or vice versa.

This should work:
1. Load the text block in the score
2. Browse through each part
3: In the part loop do like this: switch to part scope + change the 
visibility state + save the object again + switch the scope back


Best regards,

Jari Williamsson





More information about the JWLua mailing list