gw.text unregister in the viewpot?

gw.text unregister in the viewpot?

I_Megaman_i
Collaborator Collaborator
659 Views
4 Replies
Message 1 of 5

gw.text unregister in the viewpot?

I_Megaman_i
Collaborator
Collaborator

Hey
so simple question how do I kill gw.text in the scene itself?
Thanks

3dsmax_ls52MBDcYh.png

0 Likes
660 Views
4 Replies
Replies (4)
Message 2 of 5

A娘
Advocate
Advocate

GW active in callbacks , use unregisterRedrawViewsCallback to remove the callback , they will disappear when next viewport redraw

0 Likes
Message 3 of 5

I_Megaman_i
Collaborator
Collaborator

a working example please

0 Likes
Message 4 of 5

A娘
Advocate
Advocate

you should checkout which callback render the gw , such as you find it was in  function "rendergwtext",  then just run "unregisterRedrawViewsCallback rendergwtext" in script listener
if your max version was 2021.1 or above , run "disableRedrawViewsCallbacks()" can disable all gw render , or "showregisteredRedrawViewsCallbacks()" to check all callbacks for gw , then you can test one by one
if under 2021.1 , max has no api to access , it would be more inconvenient

0 Likes
Message 5 of 5

miauuuu
Collaborator
Collaborator

If you are using some external tools/scripts, for example RappaTools, you  have to stop the script/function which draws text on viewport.

https://miauu-maxscript.com/
0 Likes