Notifications
Clear all

[Closed] Draw text in Viewport

Thx denisT for your suggestions to make a separate thread.

Check this yt film

 1.
 On: 1:02 there is "Vieport Stats Disabled" (red Color) and "Vieport  Stats Enabled" (green color). Is it made by rollout (black background,  without #style_sysmenu + .Net labels) + label? How can i achive that?
 
 2.
 On 0:52 - upper edge of viewport - theres stats + something what i want to achive - ignore backfacing/constraints etc. It [b]stays there constantly[/b] and have (i think) [b]transparent background[/b] - how can i write that? I need something like [b][i]show statistics[/i][/b]

Is there a way to write transparent background of rollout / labels / all elements on rollout in maxScript + dot Net?

4 Replies

1, 2 – for drawing on viewport check this.
3 – only with dotNet. In the forum there are several exmples of how to achieve that. Try to find them.

so its gw.*

THANKS A LOT MIAUU !
ill check documentation of gw class

about 3. i cant find any good thread. But this can wait – ill use gw.

Edit:
can you tell me how can i kill some GW.*
I used 2 times the same name of function – registerRedrawViewsCallback fn_xxx
and unregisterRedrawViewsCallback fn_xxx will kill only the last.

Restart 3dsMax is the only way I know, so do not use 2(or more) times the same name function.

thanks

Is there a way to add rcMenu to gw.wText (similiar to (example) [+][Perspective][Shaded])?