ScriptSpot

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)

barigazy · 2012-10-12

Or you can use mapped function like this

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

barigazy · 2012-10-12

To close all popups just run this

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

oncire · 2012-10-12

thanks for your reply.

i will try

big thanks

oncire · 2012-10-12

your code works... now my script is completed... thanks again barigazy for the code