简体   繁体   中英

Python launch program from Maya freeze

I have a little question. Maybe it's not difficult but I don't find the answer.

I find a way to launch from Maya substance painter with python command.

My problem is that Maya stays freeze until I leave substance painter.

I would like to use Maya while substance painter is open.

the code:

subprocess.call(['C:/Program Files/Allegorithmic/Substance Painter/substance painter.exe' ,'--mesh' , 'c:/temp/exported.fbx'])  

Thank in advance for your help.^^

subprocess.call() waits for the completion of the subprocess. You should try subprocess.Popen() .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM