Hi, The sleep is not going to help you here because ultimately you are just blocking Maya the whole time until your loop is done. I suppose what you are looking for is to call refresh() at intervals in your loop http://download.autodesk.com/global/docs/maya2014/en_us/CommandsPython/refresh.html
On Wed Nov 19 2014 at 07:45:31 maya2000 <[email protected]> wrote: > >> excuse me... > when run this script: > import time > for i in range(1,50): > time.sleep(0.2) > mc.polyCube(n='c'+str(i)) > or example,this script: > import time > for i in range(1,50): > time.sleep(0.2) > print "test" > maya ten secend,stop and dont work.... > i want,when my (example)program running,maya dont stop and it work...!! > sorry...my english is not good! > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/5dbb3dbe-2b12-4ef0-a079-fc03f79fd77e%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/5dbb3dbe-2b12-4ef0-a079-fc03f79fd77e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3%3DLJj2_s1Wap59hfP8gm8KkzDoRkyMWZCTPU29rJMS2g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
