hello
I tried to modify a Paul Bertino script to show name and poistion of selected objects.
I works but I can't do a script to remove it (need to reboot max).
I don't really understand maxscript help "register" and "unregister" ??
If somebody can help :-)
----------------------------------------------
(
unRegisterRedrawViewsCallback showObjectNames
fn showObjectNames=
(
gw.setTransform(Matrix3 1)
for o in selection do
(
gw.text (o.pos+[0,0,0]) ("< "+o.name+" >") color:yellow
gw.text (o.pos+[0,0,-3]) (o.pos.x as string ) color:yellow
gw.text (o.pos+[0,0,-6]) (o.pos.y as string ) color:yellow
gw.text (o.pos+[0,0,-9]) (o.pos.z as string ) color:yellow
)
gw.enlargeUpdateRect #whole
gw.updateScreen()
)
registerRedrawViewsCallback showObjectNames
showObjectNames()
)
Anubis · 2009-07-01
real08121985 · 2009-07-01