Thread: Query windows.
View Single Post
# 1 30-05-2006 , 01:58 AM
mayakid14's Avatar
Registered User
Join Date: Nov 2004
Location: Florida
Posts: 105

Query windows.

I have been working with a simple MEL script for animation.
The code imports a pixel map and searches through the pixels.
Sometimes the pixels may return wrong and imperfect information. If such error occurs after the script has been executed it is supposed to query the user.
Some simple query interfaces commands that I have been looking at are:
promptDialog;
confirmDialog;

The only thing about these two are that they don't give me the control I want. The user would need more control over the dialog in my case.

One thing that I realized about the promptDialog; and confirm Dialog; commands are that they literally freeze the background interface. If you insert the promptDialog text in the script editor you will notice that the promptDialog blocks any interaction between the user and all the other objects in the interface. It even freezes a while{} loop. I was just wondering if anyone new of a way to replicate the effect of the PromptDialog box with a regular window. The other dialogs are of no use to me because they are not versatile enough.

So in conclusion I need to make a query window of my own that can freeze a while{} loop like a promptDialog would.
If anyone could help me out I would greatly appreciate it.


I hope you didn't waste your time reading this line.

Last edited by mayakid14; 30-05-2006 at 02:04 AM.