A blender add-on for having custom scripts on a shelf, like maya's shelf or 3ds max custom toolbar. Just copy and paste your scripts here to create buttons to run them later.

revoconner
class MyFilePostprocessor extends AssetPostprocessor {
function OnPreprocessModel () {
// Set imported models to scale 1.
// Disable swap UV channels.
var modelImporter : ModelImporter = (assetImporter as ModelImporter);
modelImporter.globalScale = 1.0;
modelImporter.swapUVChannels = false;
}
function OnPostprocessModel ( object : GameObject ) {
FixMaxImport ( object );
}
function FixMaxImport ( object : GameObject ) {
// Unrotate root transform.
object.transform.rotation = Quaternion.identity;
// Get all meshes and unrotate them.
var meshFilters : MeshFilter[] = object.GetComponentsInChildren.< MeshFilter > ();
for ( var j : int = 0; j < meshFilters.length; j++ ) {
FixMesh ( meshFilters[j].sharedMesh );
}
}
function FixMesh ( mesh : Mesh ) {
var resetTransform : Quaternion = Quaternion.Euler ( -90.0, 0.0, 0.0 );
var newMeshVertices : Vector3[] = new Vector3[mesh.vertexCount];
var newMeshNormals : Vector3[] = new Vector3[mesh.vertexCount];
for ( var i : int = 0; i < mesh.vertexCount; i++ ) {
newMeshVertices[i] = resetTransform * mesh.vertices[i];
newMeshNormals[i] = resetTransform * mesh.normals[i];
}
mesh.vertices = newMeshVertices;
mesh.normals = newMeshNormals;
mesh.RecalculateBounds ();
}
}
This should unrotate all models that don't have animation on import.
Farfarer
Eric Chadwick

Finnn
Fabi_G
ZacD
Prime8
pior