[692] | 1 | This is the plugin for exporting from Maya 6.5 to OGRE mesh and skeleton formats. |
---|
| 2 | |
---|
| 3 | Copy ogreExporter.mll to your maya plug-ins directory (I.E.: C:\Program Files\Alias\Maya6.5\bin\plug-ins) |
---|
| 4 | |
---|
| 5 | Copy all files from the scripts directory to your maya scripts directory |
---|
| 6 | (I.E.: C:\Documents and Settings\user\My Documents\maya\6.5\scripts) |
---|
| 7 | |
---|
| 8 | Copy OgreXMLConverter.exe and related dlls to your maya scripts directory (same as above) |
---|
| 9 | |
---|
| 10 | If you already have a userSetup.mel in your scripts folder, then copy and paste to append content from this |
---|
| 11 | userSetup.mel to the existing one. |
---|
| 12 | |
---|
| 13 | For any help or comments check the OGRE forum or e-mail to fra.giordana@tiscali.it |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | The exporter can now be used safely via script, here's the syntax: |
---|
| 17 | |
---|
| 18 | ogreExport generalOptions |
---|
| 19 | |
---|
| 20 | ["-mesh" meshFilename meshOptions] |
---|
| 21 | export mesh to .mesh.xml file [optional] |
---|
| 22 | |
---|
| 23 | ["-mat" matFilename matOptions] |
---|
| 24 | export materials to .material file [optional] |
---|
| 25 | |
---|
| 26 | ["-skel" skelFilename] |
---|
| 27 | export skeleton to .skeleton.xml file [optional] |
---|
| 28 | |
---|
| 29 | ["-anims" animsOptions ["-clip" clipName clipOptions] ["-clip" ...] [...] ] |
---|
| 30 | export skeleton animations to the .skeleton.xml file |
---|
| 31 | [optional, requires -skel] |
---|
| 32 | |
---|
| 33 | ["-particles" particlesFilename] |
---|
| 34 | export particles to .particle file |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | generalOptions: |
---|
| 38 | "-sel" | "-all" export whole scene or only selected objects |
---|
| 39 | "-world" | "-obj" export in world or object coordinates |
---|
| 40 | |
---|
| 41 | meshOptions: |
---|
| 42 | ["-shared"] export using shared geometry [optional] |
---|
| 43 | ["-v"] export vertex bone assignements [optional] |
---|
| 44 | ["-n"] export vertex normals |
---|
| 45 | ["-c" | "-cw"] export vertex colours [-c] or export vertex colours as white [-cw] [optional] |
---|
| 46 | ["-t"] export texture coordinates [optional] |
---|
| 47 | |
---|
| 48 | matOptions: |
---|
| 49 | ["-matPrefix" prefix] add prefix to all exported materials names [optional] |
---|
| 50 | ["-copyTex" outDir] copy textures used in the exported materials to outDir [optional] |
---|
| 51 | ["-lightOff"] export materials with lighting off [optional] |
---|
| 52 | |
---|
| 53 | animsOptions: |
---|
| 54 | "-np" ( "curFrame" | "bindPose" | "frame" n ) specify neutral pose, can be current frame or bind pose or specified frame |
---|
| 55 | |
---|
| 56 | clipOptions: |
---|
| 57 | "startEnd" s e ("frames" | "seconds") | "timeSlider" specify clip range with start/end time or use time slider range |
---|
| 58 | |
---|