Multiple UI windows

Ok, so this is going to be a no brainer, but I have temporarily lost my hard drive with my maxscript info on it and need to be reminded of the syntax. I have made a rollout and buttons that do shiny things, but cannot remember the best method for checking if the ui window exists in the scene. I need to be able to remove the old one before the new one gets made.

Its monday, so my addled brain (full of alcohol and M&M`s) needs a gentle prod.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
AutonomyTD's picture

Yippee!!

SuhWeeeeet!!! Thankyou very much.

Si ne tentare quomodo scis?

barigazy's picture

Solution

use globabal for rollout and destroydialog function.
Example:

global TestRoll
try(destroydialog TestRoll) catch() 
rollout TestRoll "TestScript" width:208 height:20
(
   -------------------------------------------
)
createDialog TestRoll style:#(#style_titlebar, #style_sysmenu, #style_toolwindow)	

bga

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.