ScriptSpot home

Forum topic · General Scripting

script - close the active shade window?

By oncire · 2012-10-12

Description

hi guys please help ..im still a beginner in maxscripting.. search already online but no luck.. im finding a way to "close the active shade window" via maxscript.. im currently working on a simple script to automate the process in opening the vray rt and closing the active shade window when done... or is there any script to "close all the floating windows"?

thanks in advance

Comments (4)
Branko Živković

Or you can use mapped function like this

popDialogs = UIAccessor.GetPopupDialogs()
mapped fn closePopups hwndArr = (UIAccessor.CloseDialog hwndArr)
closePopups popDialogs

Branko Živković

To close all popups just run this

popDialogs = UIAccessor.GetPopupDialogs()
for d in popDialogs do UIAccessor.CloseDialog d