Saturday 16 November 2013

My first Mel (Maya) script UPDATE(2/1/2014)

Hello everybody,

since a few days I've started to learn mel script for Maya,
and I would like to share my work in progress from my first script with the interface.

This is a script for exporting FBX for Unity, with some little options.
1.1) Select All(Geom) = select all geometry in the scene.
1.2) Clear selection = clear all selection in the scene.
2.1 and 2.2) Export selected and export all, are working with the bottom list.
3.1) Export objects centred to 0,0,0.
3.2) Export objects in separate files.
4.0) Add or remove items to the list, and clear all the list.

the script is still wip but the main functions behind buttons are almost finished.
I also think it's a very good start to learn an unknown programming language.

thanks for your support.

Update with some more buttons.
One to select object(s) in the scene from a selection on the bottom list,
two prefix and suffix export name options, and a refresh button to refresh list if you delete an object in the scene.

First final version. [Download].
It must be place in "C:\Users\UserName\Documents\maya\scripts"
This version save FBX(s) on the C drive.
To change that, change the line 230 : FBXExport -f ("c:/" + $vPrefix + $o + $vSuffix + ".fbx") -s;

For any problem, bug report, or implementation ideas, contact me by mail or just leave a comment.
lefebvrejonathan.pro@gmail.com

Happy new years.
 
Copyright 2014 Polygon Experiment