Page 1 of 1

Change 'font' property on text object?

Posted: 30 May 2013 09:24
by hakonandersson
Hi guys!

Really simple question here - is it possible to change the font property (font size) via script (setattribute or other?), or is it a static property only being defined on the object's properties tab?

I've tried the usual 'objectname.font = x', but no luck.

Thanks all,
Hakon.

Re: Change 'font' property on text object?

Posted: 30 May 2013 10:13
by Softcore
The properties of each object are referenced at the final pages of lemur manual as "attributes" and you can change them by using

setattribute(object, attribute, value)

That said though, font size is not one of them for any of the objects!

if its important to you, you can I guess show and hide alternate text objects with pre-defined font sizes of your choices using show(object, state)

Re: Change 'font' property on text object?

Posted: 30 May 2013 12:21
by hakonandersson
Softcore,


Great suggestion, many thanks for that - implemented, works well. Cheers.