1 | This is the plugin for exporting from Maya to OGRE mesh and skeleton formats. |
---|
2 | |
---|
3 | 1)Copy ogreExporter.mll to your maya plug-ins directory (I.E.: C:\Program Files\Alias\Maya7.0\bin\plug-ins) |
---|
4 | |
---|
5 | 2)Copy Ogre dlls (you can find them in the "dlls" directory of this zip) to your maya bin directory |
---|
6 | (I.E.: C:\Program Files\Alias\Maya7.0\bin) |
---|
7 | |
---|
8 | 3)Copy ogreExporter.mel (from the "mel" directory of this zip) to your maya scripts directory |
---|
9 | (I.E.: C:\Documents and Settings\user\My Documents\maya\6.5\scripts) |
---|
10 | |
---|
11 | 4)If you already have a userSetup.mel in your scripts folder, then append the line |
---|
12 | source ogreExporter.mel; |
---|
13 | to the existing userSetup.mel. |
---|
14 | If you don't have a userSetup.mel file in your scripts directory, then copy there the one you find in |
---|
15 | the "scripts" directory of this zip. |
---|
16 | |
---|
17 | 5)Launch vcredist_x86.exe to install the latest visual studio 8 dlls |
---|
18 | |
---|
19 | |
---|
20 | For any help or comments check the OGRE forum or e-mail fra.giordana@tiscali.it |
---|
21 | |
---|
22 | |
---|
23 | The exporter can now be used safely via script, here's the syntax: |
---|
24 | |
---|
25 | ogreExport generalOptions |
---|
26 | |
---|
27 | ["-mesh" meshFilename meshOptions] |
---|
28 | export mesh to .mesh binary file |
---|
29 | |
---|
30 | ["-mat" matFilename matOptions] |
---|
31 | export materials to .material script file |
---|
32 | |
---|
33 | ["-skel" skelFilename] |
---|
34 | export skeleton to .skeleton binary file |
---|
35 | |
---|
36 | ["-skeletonAnims" skelAnimsOptions ["-skeletonClip" clipName clipOptions] ["-clip" ...] [...] ] |
---|
37 | export skeleton animations to the .skeleton file |
---|
38 | [requires -skel] |
---|
39 | |
---|
40 | ["-vertexAnims" vertexAnimOptions ["-vertexClip" clipName clipOptions] ["-clip" ...] [...] ] |
---|
41 | export vertex animations as morph animations to the .mesh file |
---|
42 | [requires -mesh] |
---|
43 | |
---|
44 | ["-blendShapes"] bsOptions |
---|
45 | export blend shapes as mesh poses to the .mesh file |
---|
46 | [requires -mesh] |
---|
47 | |
---|
48 | ["-BSAnims" ["-BSClip" clipName clipOptions] ["-clip" ...] [...] ] |
---|
49 | export blend shape animations as pose animations to the .mesh file |
---|
50 | [requires -mesh] |
---|
51 | |
---|
52 | ["-particles" particlesFilename] |
---|
53 | export particles to .particle file |
---|
54 | |
---|
55 | |
---|
56 | generalOptions: |
---|
57 | "-sel" | "-all" export whole scene or only selected objects |
---|
58 | "-world" | "-obj" export in world or object coordinates |
---|
59 | "-lu " "pref | mm | cm | m | in | ft | yd" select length unit for export |
---|
60 | ("-lu pref" means to get unit from scene |
---|
61 | preferences) |
---|
62 | "-scale" s scale the whole mesh by s |
---|
63 | |
---|
64 | |
---|
65 | meshOptions: |
---|
66 | ["-shared"] export using shared geometry |
---|
67 | ["-v"] export vertex bone assignements |
---|
68 | ["-n"] export vertex normals |
---|
69 | ["-c"] export vertex colours |
---|
70 | ["-t"] export texture coordinates |
---|
71 | ["-edges"] generate mesh edge list |
---|
72 | ["-tangents"] generate tangents |
---|
73 | |
---|
74 | matOptions: |
---|
75 | ["-matPrefix" prefix] add prefix to all exported materials names [optional] |
---|
76 | ["-copyTex" outDir] copy textures used in the exported materials to outDir [optional] |
---|
77 | ["-lightOff"] export materials with lighting off [optional] |
---|
78 | |
---|
79 | skelAnimsOptions: |
---|
80 | "-skelBB" include skeleton animations in bounding box calculation |
---|
81 | "-np" ( "curFrame" | "bindPose" | "frame" n ) specify neutral pose, can be current frame or bind pose or specified frame |
---|
82 | |
---|
83 | bsOptions: |
---|
84 | ["-bsBB"] include blend shapes in bounding box calculation |
---|
85 | |
---|
86 | vertexAnimOptions: |
---|
87 | ["-vertBB"] include vertex animations in bounding box calculation |
---|
88 | |
---|
89 | clipOptions: |
---|
90 | "startEnd" s e ("frames" | "seconds") | "timeSlider" specify clip range with start/end time or use time slider range |
---|
91 | |
---|