Python, MaxScript, FBX SDK, Maya, 3Ds Max
Maya-3DsMax Pipeline Tool
Python, FBX SDK, Maya, 3Ds Max, Maxscript
Introduction:
It’s a batch process tool that can transfer animation data from Maya to 3Ds Max using Python, FBX SDK and MaxScript. The tool would keep the size of mesh, skeleton and skin of characters the same when Maya and 3Ds Max has different units.
- Choose FBX output path first.
- Select output options.
- Select filtered object type from available type list by double click or arrow key.
- Select other options, like removing template or empty group.
How to transfer command from Maya or any other software to 3Ds Max:
If the 3Ds Max is not opened, I will open the Max with the following script to open the FBX file:
1 | # The path that contains the fbxPath.txt |
3Ds Max will run a script automaticaly to create a thread(SynchronizingBackgroundWorker) and TcpListener(Net.Sockets.TcpListener) when the Max starts. Then to start the listener and accept(theTcpListener.AcceptSocket the pending client connection and returns a socket for communication. The socket will receive data from external program in a for loop. Converting socket bytes to string. Finally, the command string will be executed if the received data is not empty.
1 | while theString!="exit" do |
1 | if theString != "" do |