[maya] froXnormal 0.6 : a batcher/exporter for Maya

—————————–

This script is now unsupported.
I will not take in account any bug or request anymore.

—————————–

Update : Download version 0.7.1

Changelog :
[version 0.7.1]
-updated the Cage slider : now a field with a +/- buttons (more precise and scalable)
-updated the SBM export, now totally silent (without the OK dialog after the export)
-fixed the export of the cage when using the SBM format

[version 0.7]
-added a button to open the export folder
-added possibility to bake non-square textures.
-added “check nGons” button to check manually n-gons on a selected mesh.
-added a check before calling xNormal to see if LP/HP mesh have been exported
-updated the export path button, removed a conflic with the “froTools” script.
-updated the checkbox “Convert HP smth” to be false by default
-fixed an error about the WindowPref command when you load the script
-fixed the missing settings for the Curvature map (UI, preset and xNormal xml)
-fixed an error with the export path of the low poly mesh in the SBM format.
-fixed the crash when setting the xNormal path.

[version 0.6.1]
-added Smoothing group and Tangent/Binormals options for the FBX export.
-fixed FBX Triangulate problem when using an older plugin verison (FBX 2011 and before)


Hello folks ! I’m back with a new script ! This time about xNormal.
I’m a big user of this software. Mostly because xNormal is very fast when you work with it. However, xNormal has a big concern : its ugly and slow interface.

Fortunately, xNormal offer the possibility to batch via an xml file some settings. This is where my script comes : directly from Maya you can export and bake your meshes without dealing with the xNormal UI. It’s faster and easier to use. You have access to most of the maps that xNormal allow to bake and you can save the UI settings and share it easily. Enjoy ! 🙂

How to use it ?

Basic use :
1 –Set your export path inside the UI and the path to your xNormal program.
2 –Setup correctly your low poly mesh and your high-poly mesh
3 –Hit the export button at leats one time for eahc mesh
4 –Use “Bake texture(s)” to launch xNormal

Explanation of some check box :
-“HP out of scene” : You can set your HP as “out of the scene”, this way you don’t need to load it inside Maya. To use this feature you must respect the nomenclature : xxx_hp.format. Your mesh file must finish with “_hp”. Don’t forget to change the format of your meshes in the UI

-“Use blocker” : if you have specified a blocker if the field above, this one will be used for the baking. If you uncheck this or leave the field blank, nothing will happen for the blocker.

-“Use Cage” : Same idea as the blocker file.

-“”Always new xml” : If checked, it will force the script to delete the “export.xml” file generated and create a new one. You can use this is you want to be sure that your xml is clean.

-“Convert HP smooth” : If checked, the HP mesh will be set to the smoothed preview (aka the 3 key on the numpad) and then this preview will be converted to true geometry and exported as-is. After the export, the mesh will be back to normal. It’s a shortcut to avoid to manually convert your smoothed mesh into geometry.

“Export HP” and “Export LP” buttons
You have two buttons to export your mesh. I made it this way in case you have a very heavy high-poly mesh and you just want to export and update your low-poly mesh. This way it will be faster rather than exporting everything. The “Export LP” button also export the cage and the blocker mesh.

Can I use multiple mesh ?
Yes and no, you can’t specify multiple mesh individually. However you can make a group and specify it as a LP or HP mesh. This way the exporter will combine them and export all of them.

“Create cage” button
This button allow you to create something similar to the Maya envelope. Once created, you can use the slider at the right of the button to inflate the cage. If you reload you scene or the script later, simply put the name of the cage in the corresponding field and you will be able to use the slider again.

Presets

To easily save and share the settings of the script’s UI you have access to the “presets” buttons. Saving the UI will simply make a Maya group with all the scripts settings as attributes saved on it. You can then save your scene and re-open it latter or export the group as an FBX file to share it. Simply select the group and click on “Reload” to get back all your settings.

Note that you can edit the settings directly in the “Extra Attributes” of the group. However, I don’t recommend you do do this, it’s better to reload the preset, udpate the script Ui and then re-save the preset.

Download, Install and launch


Download :
Download the last version : froXnormal version 0.7-1

Install :
Put the content of the folder “frox-0-x” inside your maya folder.
Ex : “My Documents\maya\2011-x64\”

How to launch ?
Call the command “source froXno.mel; froXno();” in the mel command line for the first time.
You can use the “Add to Shelf” button to make a shelf button in your current shelf.

Changelog :

//version 0.6
-cage support added (custom and maya envelope)
-fixed a bug with the clear button (now working when nothing is selected);
-added preset support

//version 0.5
-curvature and prt map added
-n-gon filter added when exporting meshes
-fixed some misspellings
-added a new Tab : settings for the different maps
-fixed errors with the creation and the writing of the xml file
-fixed error when fbx plugin is not loaded (export automaticaly in obj)
-changed the export button to 2 button (one side HP mesh, other side LP/Blocker)
-new export maps added (height map, PRTpn, Curvature, Base texture)
-new options to force the writing of the xml file
-added an option to automatically convert HP from smooth preview to geometry at export

//version 0.4
-Xml file automatically generated in the export folder (when not already existing)
-n-gons detector on the low-poly before export
-fbx update : support update 2013 of the fbx plugin

//version 0.3
-Fix for the changes in the FBX command
-Fix for the blocker exporter, now really working

//version 0.2
-Initial version
-Support XML generation + xNormal export