AM Tools 1.05
Packages | Functions
Package amTools.unity

A collection of modules for making modifications to the Maya scene during FBX export to Unity. More...

Packages

package  blendShapes
 

Export sparse blendShape data from the Maya scene when Unity exports it to FBX.


package  models
 

Various functions to perform custom operations on models in a Maya scene when Unity exports them to FBX.


package  rigs
 

A package of modules to add custom attributes to objects to describe different parts of animation rigs.


Functions

def reloadAll
 Reload all modules in this package.
def modifyExport
 Entry point for all desired functions.

Detailed Description

A collection of modules for making modifications to the Maya scene during FBX export to Unity.

Usage: Comment or uncomment the functions in modifyExport() as desired. Call modifyExport() from FBXMayaExport.mel or in your scene before manually exporting to FBX. To call from FBXMayaExport.mel, change the following line:

file -force -o $filename; 

to this:

 file -force -o $filename;
 
 // begin customization
 python("try: import amTools.unity as unity\nexcept: pass");
 python("try:\n\treload(unity)\n\tunity.reloadAll()\nexcept: pass");
 python("try: unity.modifyExport()\nexcept: pass");
 // end customization 

Creation Info:

Donations: http://adammechtley.com/donations/

License: The MIT License

Copyright (c) 2011 Adam Mechtley (http://adammechtley.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Function Documentation

def amTools.unity.modifyExport ( )

Entry point for all desired functions.

It is advised you use the AMTools menu in Maya to enable and disable features.

def amTools.unity.reloadAll ( )

Reload all modules in this package.

 All Classes Namespaces Files Functions Variables