vrn Normalifique

€0+
€0+
Valentin Nadolu

--------------------------------------------------------------------------
vrnNormalifique.mel - MEL Script
--------------------------------------------------------------------------
DESCRIPTION:

The script will align (and lock) the vertex normals of the current selection to the normals of the selected faces. The effect is similar to Maya's weighted normals setting but the resulting normals will be "snapped" rather than just weighted.

This allows for smoother shading on low poly hard surface materials that use bevels. This will also result in cleaner normal map bakes with less gradients which in turn will cause less normal map compression artifacts.

For more details please consult the tutorial below.

--------------------------------------------------------------------------
INSTALLATION:

1. Copy the files into the script directory, usually:

My Documents/maya/<version>/scripts

2. Restart Maya or execute "rehash" in the Script Editor.

--------------------------------------------------------------------------
USAGE:

Call the function with either commands:

vrnNormalifique(0);

-will set the perimeter normals so that they snap to the current

selected faces

vrnNormalifique(1);

-will set all the normals in the current selection to the average normal

of the entire selection

Bonus commands:

vrnSoftEdge;

-softens edges while keeping custom normals

vrnCopyNormal;
-copies the normal of the current selection

vrnPasteNormal;

-pastes the normal to the current selection

--------------------------------------------------------------------------
Quick tutorial:

vrntech.ro/blog/WE9Y/maya-mel-script-vrnnormalifique

----------------------------------------------------------------
REQUIREMENTS:

Maya 2017 or newer (might work in previous versions although not tested)

--------------------------------------------------------------------------
VERSION HISTORY:

v 0.1 alpha

-initial version

-limitation: internal hard edges relative to initial selection are

not preserved

v 0.2 beta

-added vrnSoftEdge procedure which soften edges while preserving custom normals

-rewrote from scratch with new logic based on vrnSoftEdge

v 1

-initial public release

-fixed some bugs

v 1.1

-added bonus vrnCopyNormal and vrnPasteNormal

--------------------------------------------------------------------------
CONTACT INFO:

Valentin Nadolu
vrntech.ro
valentin.nadolu@yahoo.com

You can use the script for personal or/and commercial work.

If you do find it useful, please give me credit in your work where possible!

--------------------------------------------------------------------------

Powered by

Checkout

vrn Normalifique

Enter your info to complete your purchase of V 1.0