holycause
09-02-2009, 11:17 PM
I've 2 questions about
I would like to display some informations in the viewport.
I found how to do it. (http://forums.cgsociety.org/showpost.php?p=1633217&postcount=2)
Fn DisplayVolFn =
(
gw.setTransform(matrix3 1)
for o in objects where not o.isHidden do
(
gw.text o.pos ((VolObjFn o)as string) color:yellow
)
gw.enlargeUpdateRect #whole
gw.updateScreen()
)
my first question is:
how could i display my text over my objects and not hidden by them. Like on the 2nd picture below. I would like to display it, if possible, like a ToolTip (3rd picture below).
Second question: I would like to display the result for the object my mouse move over and not for all the objects and all the time. I think I'll have to use the mouseTrack() Fn. Right?
http://aespid.com/Perso/MS/MSViewport.jpg
I would like to display some informations in the viewport.
I found how to do it. (http://forums.cgsociety.org/showpost.php?p=1633217&postcount=2)
Fn DisplayVolFn =
(
gw.setTransform(matrix3 1)
for o in objects where not o.isHidden do
(
gw.text o.pos ((VolObjFn o)as string) color:yellow
)
gw.enlargeUpdateRect #whole
gw.updateScreen()
)
my first question is:
how could i display my text over my objects and not hidden by them. Like on the 2nd picture below. I would like to display it, if possible, like a ToolTip (3rd picture below).
Second question: I would like to display the result for the object my mouse move over and not for all the objects and all the time. I think I'll have to use the mouseTrack() Fn. Right?
http://aespid.com/Perso/MS/MSViewport.jpg
