Skip to content

zhongming/m2u

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

m2u

m2u is a collection of modular python scripts and plugins to allow for interactive syncing of "level building data" between 3D-Authoring-Applications (Programs) and Game-Engine-Applications (Editors).

Currently only Maya and Unreal Engine 4 are supported.

To get an Idea of what m2u can do:

You can also take a look at the development thread in the UE4 forums.

Using m2u in Maya

  1. Clone or download the repository (hit the green button on the top-right of this page).

    Note: If you download the .zip, it will have the branch- or tag-name in the file-name like m2u-develop. After unzipping, make sure that the folder is only called m2u, or this won't work.

  2. Put the m2u folder into a place where Maya can find it. This means the folder above the m2u folder has to be listed in the python sys-path.

    There are multiple ways to achieve this:

    • You can add temporarily to the sys-path by executing:

      import sys
      sys.path.append("path/to/folder_above_m2u")
    • Maya will by default look for scripts in a few directories, among others <user’s directory>/My Documents/maya/scripts and <maya_directory>/scripts/others. See the PYTHONPATH section on the Knowledge Network for more info. If you put m2u in any of these directories, Maya should be able to find it.

    • You can also modify (or create) the PYTHONPATH environment variable. Add an entry that points to the directory above the m2u directory, and every python on your system should be able to find m2u.

      Note: In a managed environment (pipeline) this is often overridden when starting Maya through a shell script or .bat file. If you don't know what you should do, ask your pipeline-team / Technical Director about it.

  3. Start m2u by executing:

    import m2u
    m2u.core.initialize("maya","ue4")
    m2u.core.program.ui.create_ui()
  4. Make sure the Editor is running and has the m2uPlugin loaded. Hit the connect button in the m2u window. If that went successfull, select what you want to be synced and have fun.

    You might want to click the Setup Cameras button to adapt Maya's cameras to large-scale scenes and 90˚ FOV.

Note: You will currently have to use Z-up space in Maya.

License

MIT

About

m2u python scripts

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%