Adverti horiz upsell

willPadFrame 1.0.0 for Maya (maya script)

MEL procedure to return padded frame numbers

License
Button download
78 Downloads

Compatibility

  • 2011, 2010, 2009, 2008

Operating Systems

  • Linux
  • Mac
  • Windows

History

Created:12/19/2010
Last Modified:12/19/2010
File Size: 378 Bytes
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 Bug System to report any bugs.
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.