Prior to what yann19 has mentioned, having the padding incorporated into the
function instead of writing it out, whenever I need to call it. I thought of
changing the second last line of the function from
name = "{0}{1}".format(base, i)
into
name = "{0:<03}".format(i)
But as I tried to use uniqueNamePattern("test_{0}_GRP"), the padding revert
back to a single digit unless I change {0} to {0:<03}
I apologize in advance that I have not done much testing before I type this out
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/08b2f88c-1aa5-4b9c-948a-428081ae8498%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.