a script to show a sentence at the bottom of viewport
Hi, I'm newbie to scripting. I need someone to write a short script for me to show a sentence at the bottom of viewports. I searched the web and I found that this is can be achieved by gw.text function. But I dont know exactly how to use it.
and I found a scipt which does what I want but with two problems:
1. the text behaves like an object in the scene, I mean for example when I pan the scene the text goes outside of viewports! I want it to stick solidly to viewports with no movement
2. the text flickers badly!
and this is the code:
fn drawText =
(
gw.text (point3 00 50 0) "Test Text"
gw.enlargeUpdateRect #whole
gw.updateScreen()
)
registerRedrawViewsCallback drawText
please help me.
thanks
Comments
Use gw.htext or gw.wtext
Use gw.htext or gw.wtext