How exit mobupy after executed a python script

How exit mobupy after executed a python script

yohiro36
Explorer Explorer
256 Views
2 Replies
Message 1 of 3

How exit mobupy after executed a python script

yohiro36
Explorer
Explorer

Hi,

 

I write a python script to process mocap data with motion builder 2024. I integrate the script in my workflow with mobupy.exe. it works fine when process single file with mobupy.

 

Now I give it multiple files to process, which just gather all the fbx files in specified folder and process via the script i wrote one by one.

 

But the situation is, it can only process the first file, than the mobupy.exe process seems freezed. When I use task manager to end the mobupy process, it will continue to execute with the next fbx file.

 

I try call quit()/exit()/os._exit()/sys.exit() in the last in script, it seems the exit command is ignored, mobupy.exe still exists.  While I call the exit commands in origin python.exe, I can exit python.exe successfully. 

 

So  how can I exit the mobupy.exe after the motion builder python script executed?

 

Thanks.

0 Likes
Accepted solutions (1)
257 Views
2 Replies
Replies (2)
Message 2 of 3

Ndgt
Enthusiast
Enthusiast
Accepted solution

Hi @yohiro36 

 

I’ve encountered a similar issue when using mobupy.exe with MotionBuilder 2024.

In my case, the root cause wasn’t mobupy.exe itself, but rather a background process related to the main MotionBuilder application.

 

If you just want to terminate the process, you’ll need to end the "Autodesk MotionBuilder" task in Task Manager, or identify and stop any background process that might be running indefinitely.

 

For me, the issue was resolved by removing a third-party DLL plugin.
Are you using any external plugins, such as the Unreal Engine Live Link Plugin?

Message 3 of 3

yohiro36
Explorer
Explorer

Thanks for your solution! It did solve my issue.