Everything for the Nothing

Somewhat Random nerdy things that happen to me and others.

Recent Comments

Powered by Disqus
Mon Feb 2

Sequence Finder

I thought I would do a little learning of Python.  I thought I should maybe build something that I could use all the time.  Something, say, that could organize multiple image sequences and sort them based on sequence into groups.  So each group would have a sequence of images in it that i could then organize into folders.

The problem with this, as i found out, is that the image sequences are somewhat random.  Mostly because of non standard naming conventions.  Which means that I have to find the part of the image name that is the number sequence as well as watch out for version numbers and the like.

example:

testImage_V01_001.jpg

testImage_v01_002.jpg

testImage_v02_001.jpg

testImage_V02_002.jpg

NewTestImage_V01a_01.jpg

NewTestImage_V01a_02.jpg

Well after a few nights of playing around, I’ve finally done it.  It works in most instances that I have run into and because I know that the next job I go to will probably do things a little differently I commented the crap out of it so I can figure out just how i did it next time I have to change it.

If I figure out how to attach files here I’ll post it for all to see my (currently) crappy python skills.  And if anybody has any time, I would love some constructive criticism.

Comments (View)
blog comments powered by Disqus