stuh505
03-10-2006, 01:17 AM
Hi there. I'm using max 8 sp1
using bobo's code:
unRegisterRedrawViewsCallback showObjectNames
fn showObjectNames=
(
gw.setTransform(Matrix3 1)
for o in $ where not o.isHidden do
(
gw.text o.pos (o as string) color:yellow
)
gw.enlargeUpdateRect #whole
gw.updateScreen()
)
registerRedrawViewsCallback showObjectNames
showObjectNames()
The text shows up when I evaluate, but the redrawing is highly sporadic
When I move around in the viewport the text disappears
Every now and then part of it will come back. For example, if I minimize max, select an object, etc, part of it might come back for a little bit and then go away again.
If I delete the objects then it says "no map function for undefined"
Even more confusing to me is why this code does absolutely nothing:
gw.text [0,0,0] "what?" color:red
gw.enlargeUpdateRect #whole
gw.updateScreen()
And what is the difference between the gw.text, gw.hText, and gw.wText?
using bobo's code:
unRegisterRedrawViewsCallback showObjectNames
fn showObjectNames=
(
gw.setTransform(Matrix3 1)
for o in $ where not o.isHidden do
(
gw.text o.pos (o as string) color:yellow
)
gw.enlargeUpdateRect #whole
gw.updateScreen()
)
registerRedrawViewsCallback showObjectNames
showObjectNames()
The text shows up when I evaluate, but the redrawing is highly sporadic
When I move around in the viewport the text disappears
Every now and then part of it will come back. For example, if I minimize max, select an object, etc, part of it might come back for a little bit and then go away again.
If I delete the objects then it says "no map function for undefined"
Even more confusing to me is why this code does absolutely nothing:
gw.text [0,0,0] "what?" color:red
gw.enlargeUpdateRect #whole
gw.updateScreen()
And what is the difference between the gw.text, gw.hText, and gw.wText?
