SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 30-05-2006, 01:58 AM   #1
mayakid14
Registered User
 
mayakid14's Avatar
 
Join Date: Nov 2004
Location: Florida
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
mayakid14 is offline   Reply With Quote
Old 31-05-2006, 08:57 PM   #2
mayakid14
Registered User
 
mayakid14's Avatar
 
Join Date: Nov 2004
Location: Florida
Posts: 105
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok. I have been looking around fore solutions to my situation.
I know this seems off the subject a little but I have to restate my question.

There is an executable file in the maya bin directory called xpm2bmp.
When you drag an XPM pixel map over the application it creates a BMP image in the same directory as the XPM pixel map. I was wondering if there was a way by using the "system" command in maya to pass an XPM pixel map into this application to convert it into a bitmap image.

I tried stuff like:

system ("start xpm2bmp C:/Documents and Settings/[username]/[directory]/[filename].XPM");

but I get no results.
Using the command:

system ("start xpm2bmp");

without the filename directory simply opens a black cmd window.

Again I know it is off the subject a little. But I promise it all connects. If I can't do a certain thing with Maya MEL commands, minus well call on an outside resource. That's all I'm trying to do.

If anyone can help me out here or give me a tip, like always, I would greatly appreciate it.
__________________
I hope you didn't waste your time reading this line.
mayakid14 is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.