|
So I’ve got a script that does random MotionBuilder stuff, and the last thing it should do is run a windows program. I’ve noticed that if I use os.system() MB hangs and there’s no os.fork().
Basically, I just want to fire off an .exe program and still have control in MB.
Anyone have any experience with this?
Thanks!
|
|
|
|
Have you tried to start a *.bat files that starts the *.exe file to get a seperate thread.
Use the DOS “start” command to start the*.exe
That’s the way i do it in maya.
Never tried this with MB
|
|
|
|
This will allow you to start a process without waiting for it to finish:
import subprocess
subprocess.Popen('notepad')
|
|
|