M2u interactive sync script for Maya -> UE4

I got everything to work for unreal 4.7.6 but was unable to get it to work for 4.9. For 4.9’s API changed on how it handles buttons… at least that seems to be the errors i am getting.

@antithing that error you can correct in the mayaCommand.py script. Just add the following at the end of the variable.
.replace("\","/")
For example:
expcmd = “FBXExport -f “%s” -s;” % path
expcmd = “FBXExport -f “%s” -s;” % path.replace("\","/")
OR like this
lsfcmd = “FBXLoadExportPresetFile -f “%s”;” % sfpath.replace("\","/")

You may need to add that in a few more places, depends on the line errors you are getting in Maya.

@vertigoo i’m sure you figured it out, but i was able to load the gui like so.
#maya python editor i use maya 2015
import sys
sys.path.append(‘c:/yourPath’ ) #m2u folder should be under yourPath

import m2u
reload(m2u)
from m2u.maya import mayaInternalUI
m2u.core.initialize(“maya”,“ue4”)
m2u.core.getProgram().mayaInternalUI.createUI()

My two cents. i played with this for about an hour or so. Its has some great ideas and seems promising. Its still rough around the edges, the plugin could do a better job when dealing with matrices and transforms (especially when dealing with rotations), as i got inconsistent results when updated objects. Would love to see some movement on this and see it continue/ evolve. I’m myself am exploring alternative ways of connecting programs to unreal (like maya, sketchup, max). The biggest hurdle right now, is time.