MEL procedure for converting intergers into padded frames. Useful if you need to do a script which is dealing with image/file sequences which have padded frames.
Feel free to use in your own scripts or modify accordingly.
To Install:
Put the mel script in the mel scripts directory within your Maya User directory.
The default location for this directory is...
On Windows:
drive:\Documents and Settings\username\My Documents\maya\version\scripts
drive:\Documents and Settings\username\My Documents\maya\scripts
On Mac:
/Users/username/Library/Preferences/Autodesk/maya/version/scripts
/Users/username/Library/Preferences/Autodesk/maya/scripts
On Linux:
~/maya/version/scripts
~/maya/scripts
Usage:
Usage is simple... open the script editor and enter...
willPadFrame ($pad, $frame);
Where $pad is the amount of padding and $frame is the number you wish to pad.
some examples...
willPadFrame (1, 12);
//Result: 12
willPadFrame (2, 12);
//Result: 12
willPadFrame (3, 12);
//Result: 012
willPadFrame (4, 12);
//Result: 0012
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.