Some things in 3ds Max seems impossible to do with maxscript. Recently I’ve been working with pretty dense models, and when Adaptive Degredation is turned on, it will draw boundingboxes around my mesh objects for the navitation to go smoother. The problem is that I just don’t think it gets any smoother, so I would like to turn it off.
After doing some googling I found this snipped:
– Toggle active degradation
hwnd = windows.GetChildHwnd #max "StatusPanelBottomContainer"
hwnd = UIAccessor.GetFirstChildWindow hwnd[1]
for k=1 to 3 do hwnd = UIAccessor.GetNextWindow hwnd
windows.sendMessage hwnd 0x0102 0x000D 0
So what the snippet actually does is to toggle the button I want, but I can’t specify if it should enable or disable, it just picks the oppositve of what it currently is. Is there some way to always disable this button when the snippet is ran?
Couldn’t notice any difference with AdaptiveDegradeNeverDegradeGeometry, but Serejah’s suggestion did the trick. By they way, working with UIAccessors/Windows etc seems totally cryptic to me, is there some good documentation on this? Anyway, thanks again