Opposite of Prompt?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  12 December 2012
Opposite of Prompt?

using a prompt or similar dialog maya pauses until you feed a UI some input.

what I would like to do is the exact opposite and make my script pause while I do some work in maya until I click "continue" in a UI.

how would I do that?
  12 December 2012
I would also like to do this even inside of a loop, just make it wait till I tell it to continue.
  12 December 2012
It's not possible just like that.

While Maya is running/evaluating your script, particularly the for-loop, it sets its state to "busy". That means it never enters its idle state, which is necessary for you to be able to interact with it.

A possible solution would be to separate your job into 2 procedures:

the first procedure runs the for-loop until some condition is met, upon which it breaks the loop and stores whatever necessary values it needs later on in a global variable. Or you could create a scriptJob to take up where the first procedure left off.
In either case you need a second procedure that can be called when you are "done doing your work in Maya" that retreives the values previously stored and continues doing something with them.
  12 December 2012
Not possible afaik - there is no MEL "stop"-command.
Nightshade UV Editor (script for Maya) - Extends Maya's default UV Texture Editor with additional tools.
  12 December 2012
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

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
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 05:19 PM.

Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.