Feedback

What's your question?

By: Asked from India

How do I copy files from Maya with python using parallel processing?

Hi,

I need to copy a huge chunk of folders from local to server while working on an application ( maya 3d ). How is it possible. specifically.

Brgds,

kNish

Add comment viewed 345 times Latest activity 10 months ago

or Cancel

2 answers

  • 0

franssu_27 [ Editor ]

Using multithreading in Python doesn't mean that your thread will be executed in a different one than the Maya system process/thread, unfortunately. Threading in Python is controlled by, and occurs in, the Python VM, which explain the maya freeze as the python VM is running within Maya in this case. A solution would be to have a separate process (in Python or anything else) that would be in charge of copying the chunk of foldens when ordered to do so by your Python script running in Maya.

or Cancel
  • 0

vfxoverflow_48

Hi, You should look at the threading module in Python.

There are a lots of simple examples on the net, here's a couple: http://www.devshed.com/c/a/Python/Basic-Threading-in-Python/ http://www.saltycrane.com/blog/2008/09/simplistic-python-thread-example/

Hope this helps.

NN comments
knishua
-

is it possible to MThreadpool MThreadAsync in python maya to achieve the same….as it occurs that although i may use threads, yet maya will freeze when using it over network…

or Cancel