Keyword: layer width?
Posted: Tue May 30, 2006 3:15 am
I've been working on my external txt/sms module lately and I was trying to integrate a typewriter like effect besides the scrolling effect for the externally loaded text.
For the typewriter to work correctly I should be able to adjust the position of the text, depending on the width of the already shown text, because as for now, the typewriting is working but every letter that is added makes the layer grow left and right as it always takes the center of the text input as midpoint:
Something like that.
This gives problems for longer texts where the end of the typewriting falls of screen, so I would like to move the text some pixels to the left with each letter that is added by the typewriting effect. I could use a fixed width to move it, but then problems show up when using other fonttypes (as all font types have different widths and letters do too).
This entire problem could be solved if there was a keyword representing the layer width, but I haven't been able to find anything like it.
Am I looking over it or could this be a usefull keyword addition for 2.5?
Greets,
Kevin
For the typewriter to work correctly I should be able to adjust the position of the text, depending on the width of the already shown text, because as for now, the typewriting is working but every letter that is added makes the layer grow left and right as it always takes the center of the text input as midpoint:
Code: Select all
A
ABCDEFG
ABCDEFGHIJKLMNO
Something like that.
This gives problems for longer texts where the end of the typewriting falls of screen, so I would like to move the text some pixels to the left with each letter that is added by the typewriting effect. I could use a fixed width to move it, but then problems show up when using other fonttypes (as all font types have different widths and letters do too).
This entire problem could be solved if there was a keyword representing the layer width, but I haven't been able to find anything like it.
Am I looking over it or could this be a usefull keyword addition for 2.5?
Greets,
Kevin