Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

single files incorrectly grouped #4

Closed
mybikeislost opened this issue May 27, 2013 · 3 comments
Closed

single files incorrectly grouped #4

mybikeislost opened this issue May 27, 2013 · 3 comments
Assignees

Comments

@mybikeislost
Copy link

Hello,

given the following 3 sequences in a folder:

010_comp_v02.0001.exr

010_comp_v04.0020.exr
010_comp_v04.0021.exr
010_comp_v04.0022.exr
010_comp_v04.0023.exr
010_comp_v04.0024.exr
010_comp_v04.0025.exr

010_comp_v10.0001.exr
010_comp_v10.0002.exr
010_comp_v10.0003.exr
010_comp_v10.0004.exr
010_comp_v10.0005.exr
010_comp_v10.0006.exr
010_comp_v10.0007.exr
010_comp_v10.0008.exr
010_comp_v10.0009.exr
010_comp_v10.0010.exr

I get incorrect results if I run the following:
for i in getSequences(folder):
print i

Result:

010_comp_v1-10.0001.exr
010_comp_v04.20-25.exr

if I rename the single file '010_comp_v02.0001.exr' to '010_comp_v02.0002.exr' I get the following:

Result:

010_comp_v02.0002.exr
010_comp_v04.20-25.exr
010_comp_v10.1-10.exr

lss command line tool reports the same in both cases:

MacPro-Dev:renders kidb$ lss
1 .DS_Store
11 010_comp_v%02d.0001.exr 1-2 2-10
6 010_comp_v04.%04d.exr 20-25

MacPro-Dev:renders kidb$ lss
1 .DS_Store
1 010_comp_v02.0002.exr
6 010_comp_v04.%04d.exr 20-25
10 010_comp_v10.%04d.exr 1-10

@rsgalloway
Copy link
Owner

Thanks for the report. I can reproduce this. I'll look into it.

@ghost ghost assigned rsgalloway May 28, 2013
@rsgalloway
Copy link
Owner

I can try to come up with a generic solution, but for now the easiest/quickest option is to change the gDigitsRE regular expression if you know that all of your sequence files conform to this convention. e.g. if you know that comp files will always have %04d padded frames, then you can change it to this and it should work:

gDigitsRE = re.compile(r'\d\d\d\d')

pyseq.getSequences(".")
[pyseq.Sequence "010_comp_v02.0001.exr",
pyseq.Sequence "010_comp_v04.20-25.exr",
pyseq.Sequence "010_comp_v10.1-10.exr"]

@rsgalloway
Copy link
Owner

Moved this to #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants