Hi Guys, Thanks for the quick replies! So to clarify - I want the script to be flexible enough to accomodate paths with and without version folders as well as versions in the file names themselves - e.g.:
C:\...\shot01\beauty\v03\beautyPass_v03.###.exr C:\...\shot01\beauty\beautyPass_v03.###.exr C:\...\shot01\beauty\v03\beautyPass.###.exr So, i think i would need a way to detect and replace both the directories and the version string within the filename. The rigid naming system is what i'm trying to avoid since i work at different studios with different naming conventions and directory structures. Also I couldn't get the traditional python string and list methods to be nuanced enough to extract, say, '_v03' from 'fileName_v03.###.exr' in order to manipulate it and reconstitute a meaningful file path. I think that the getVersionDirIndex you just wrote, Nathan, might do the trick for now but please let me know if there are better ways of approaching this and thanks again Thomas
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
