ScriptSpot

Forum topic · General Scripting

gw.text in front

By titane357 · 2009-07-18

Description

Hello

Can somebody tell me how to draw text in front of objects ??

Thanks

Comments (5)

titane357 · 2009-11-05

Anybody ???

titane357 · 2009-07-21

thanks, but I can't manage to write the text on top of geometry : if I write a text in sphere pivot and I am in shaded view, text is hiden by the geometry. I would like to keep the text visible.

titane357 · 2009-07-20

sorry to be so unclear....
In fact I want to write text with gw.text, but I want the text to be always seen, geometry can't hide the text.

mertens3d · 2009-07-20

I'm not quite sure what you asking.

Do you want to place a text spline some Y distance away from a given node?

(without trying this myself)
If so, then you should be able to find the bounding box of the selected node. From that get the coordinates for your new text. Adjust the values (offset as desired), then draw the text spline.

Is that what you mean?

nodeGetBoundingBox
or
nodeLocalBoundingBox