Using python? version = 1 for increment in range(99): print "%02d" % (version+increment)
./sam On Thursday, 30 August 2012 at 12:24 AM, teidenzero wrote: > Hello everyone, > I have a problem that I can't get away with unless I use very horrible coding. > > Basically I have a folder where I'm going to put every nuke script of the > same shot but I want to version up every time I save using more than one > number, so something like > > shot_v04.####.jpg > > The only way I'm figuring it out is to use a string that gets sliced (so the > 0 remains constant) and the integer gets incremented, reconverted into a > string and joint again. This happens until a counter counts to 9, then the > string change will include the 0 that switches to 1 and so on, but this is a > horrible way to do it. > > Does anyone know how to get around to it? > > Thank you very much > _______________________________________________ > Nuke-python mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
