Plugins for Maya
Before exporting and importing models from Maya, you may need to change the World Up Vector to Z-axis in Maya settings. Otherwise, models will be not oriented correctly, because Unigine has a different orientation of the coordinate system. To change World Up Vector, do the following:
- Select Window -> Settings/Preferences -> Preferences on a menu bar.
- In Settings category, set Up axis to Z.
Manual Installation
If Unigine plugins were not installed automatically, do the following:
- Copy binary files (*.mll for Windows version and *.so for Linux version) into the Maya/bin/plug-ins directory.
- Copy MEL scripts (*.mel) into the Maya/scripts/others directory.
- Run Maya.
- Choose Window -> Settings/Preferences -> Plug-in manager in the Maya main menu.
- Set Loaded and Auto load flags for MeshExport, MeshImport, MeshSkinnedExport, and MeshSkinnedImport plugins.
Export into Mesh
To export static geometry into .mesh file:
- Select a model you want to export into Unigine.
- Select File -> Export Selection... in the main menu.
- Choose Mesh Export in the Files of type drop-down list.
- Check Flip option (unless Z axis is already used as a world up vector).
Static geometry export (into MESH format)
The following options are available for export into the MESH format:
- Flip — flip YZ axes and invert Y axis. This option allows to export a mesh with a proper orientation even if World Up Vector is set to Y-axis in Maya settings (instead of Z-axis).
- Scale — scaling ratio. This value scales the size of a mesh.
- Digits — required precision of exported values (the number of digits after a decimal point to keep).
Export into Skinned Mesh
To export a skinned mesh together with its animation into .smesh file:
- Make sure that Z axis is used as a world up vector.
- Select a skinned model you want to export into Unigine.
- Select File -> Export Selection... in the main menu.
- Choose Mesh Skinned Export in the Files of type drop-down list.
Skinned mesh export (into SMESH format)
The following options are available for export into the SMESH format:
- Scale — scaling ratio. This value scales the size of a skinned mesh.
- Digits — required precision of exported values (the number of digits after a decimal point to keep).
Import of Mesh and Skinned Mesh
To import a Unigine-native mesh or skinned mesh into Maya:
- Select File -> Import in the main menu.
- Choose a file in .mesh or .smesh format.
Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)