Hey guys,
When running an import, say of a 2 gb file, there is a progress bar lurking
in the Help panel. Does anyone know how to tap into that one?
E.g.
import timeimport threadingimport maya.cmdsimport maya.utils
path = r'/home/big_file.ma'
def thread():
maya.utils.executeInMainThreadWithResult(maya.cmds.file, path, i=True)
thread = threading.Thread(target=thread)
thread.daemon = True
thread.start()
# I'm looking for this one, to give me# updates on progress, so that I
can use it# in a GUI.
progress = None
# Example usewhile progress:
print progress.value
time.sleep(0.1)
print "Done"
Best,
Marcus
--
*Marcus Ottosson*
[email protected]
--
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/CAFRtmODVBA756oY6rvbgqh73pg4rdwg5cvppNfiZcJ3wv-Oc-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.