Python 从 Maya 冻结启动程序

Python launch program from Maya freeze

我有一个小问题。也许并不难,但我没有找到答案。

我找到了一种使用 python 命令从 Maya Substance Painter 启动的方法。

我的问题是,在我离开 Substance Painter 之前,Maya 一直处于冻结状态。

我想在 Substance Painter 打开时使用 Maya。

代码:

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

在此先感谢您的帮助。^^

subprocess.call()等待子进程完成。你应该试试 subprocess.Popen().