Maya to Krakatoa SR Python Exporter - Nov. 4, 2011

[size=150]NOTE: This thread contains builds posted before November 4, 2011, for the latest version of the Maya exporter go to the Krakatoa Builds section.[/size]

Attached is the Reference Exporter implementation used in our demos.
It was written in MEL for Autodesk Maya 2011/2012 64 bit on Windows and CentOS.

It is meant as a demonstration of a possible exporter implementation and is not intended for production use.
Please feel free to use any part of it for your own exporter implementations.
The documentation of the tool and its UI can be found here.

To install,

  • Copy the content of the Maya2KrakatoaSR ZIP file into your Maya/Scripts directory.
  • Customize a shelf with the command: source "KrakatoaSR_Exporter.mel";
  • Assign the icon file included in the ZIP to get the Krakatoa logo in the Maya UI.
  • Load the OBJexport plugin: The script uses the built-in OBJ exporter of Maya to output PRT Volume and Matte Object data. Be sure to set the OBJexport plugin to Load and Auto-Load.
  • Load the PRTTranslator plugin: The script also uses the open source PRTTranslator plugin to export PRT files from Maya particle systems. The PRTTranslator builds for Maya 2011/2012 64 bit on Windows and CentOS are attached to this post. Be sure to install this plugin and set to Auto-Load. You can get the source from http://code.google.com/p/ortholab/
  • Download the latest build of KrakatoaSR for your operating system. Unzip to a directory of choice (this directory will be used later by the Maya exporter). You can find the latest build here.

[size=150]UPDATE LOG:[/size]

  • 2011/11/04: Fixed a bug caused by faulty logic in PRT Loader export code. Partition code was working, but regular single sequence was not.
  • 2011/11/03: Added Animation Export support. Export Current Frame, Scene Range or Render Range. Added “ksr_” prefix to optionVar names, NOTE THAT YOUR SETTINGS WILL BE RESET TO DEFAULTS!
  • 2011/11/02: Exposed Log Level. Added support for implicit loading of Partitions from PRT Loaders. Partition format must match RegEx “[0-9]+of[0-9]+”, for example “particles_01of10.0000.prt” or “somefile__part001of100.0000.prt” or “anotherOne_5of42_0000.prt” are all valid partition names. THIS VERSION REQUIRES AN UPDATED KRAKATOA SR BUILD FROM November 2nd or later!
  • 2011/10/31: Added support for Maya running on Linux. Added support for specifying user paths for Python, KrakatoaSR, text editor, and image viewer.
  • 2011/10/28: Fixed export of nParticles and Maya Particles.
  • 2011/10/26: Fix for file_name.0000.prt files missing a portion of the base name.
  • 2011/10/26: Changed the Camera FOV code to take care of some Maya Camera peculiarities. The Krakatoa renders should now match the Maya Software renderer output. Tested with all four Fit Resolution Gate modes in both Landscape and Portrait image aspects.
  • 2011/10/25: Replaced the initial version of the MEL script with one that exports the Color and Incandescence attributes of the shader applied to the PRT Volume, PRT Loader or Maya Particle System with correct checks for attribute existence.
  • 2011/10/14: Initial release.

Maya2KrakatoaSR_MEL_20111104.zip (18.5 KB)
PRTTranslator_Maya2012_x64_CentOS.zip (16 KB)
PRTTranslator_Maya2011_x64_CentOS.zip (15.8 KB)
PRTTranslator_Maya2011_x64_Windows.zip (30.5 KB)