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
Issue with format (padding is missing) and long sequence detection #69
Comments
Hi Sophie, Thanks for the report. The reason you're seeing the first issue is because the frames don't start with a 0:
I believe this was changed in 0.5.3 with PR #63. Besides the change in behavior is this causing problems for you? If so, maybe there's a better way to solve this. For the second issue, it looks like you've got some frames that are dot separated ("SHOT."), and some that are separated with an underscore ("SHOT_"). It works if they all match, e.g.
Hope that helps : ) |
Hi Ryan, Thank you for your quick reply ! And sorry for the second point, you are right. For the padding, yes the change of behaviour is causing problems, we rarely have sequences starting at 0 in VFX, it's created from the edit. Besides, starting at a high number allows us to have handles. Do you think it can be included again ? Pyseq is BTW very nice, we use it a lot. Thank you and have a great weekend. |
It used to work that way, but was changed in #63 to resolve issue #60.
Sorry, I didn't mean starting at frame 0, I meant padded with 0s, e.g. Are your frames always padded? e.g. if you had frame x1001, would your convention be Here is an unpadded sequence (%d) starting at frame x998:
and the same sequence as padded (%04d):
pyseq knows the first sequence is unpadded, and the second is padded, but it's hard for pyseq to know if this sequence is padded or not:
because there's a) no leading 0s, and b) no frames with only 4 digits in the sequence. Hope that makes sense. I think the solution here might be to tell pyseq if sequences are always padded or not, instead of it trying to make a best guess. What do you think? The |
🙏 for the explaination, yes it makes sense. We can have both, and that's the struggle (both padded and not padded) since the images are coming from extremely various sources (camera, CGI, editing, clients...), even in most cases there are not padded. But indeed, if |
Please test this branch: https://github.com/rsgalloway/pyseq/tree/issue-69 In cases where you want strict pad checking, you will need to enable it. You can do this by setting a
In cases where you don't want strict pad checking, this should be disabled:
|
Hi @Ophtis just following up to see if you've had a chance to test this yet? |
Hello! Sorry for the late reply, I wrote some tests in my side to be sure, but it's working with PYSEQ_STRICT_PAD = 1 🙂 Thank you! |
OK thank you for verifying :) I'll merge this change soon and close this ticket. |
Hello,
First:
I have an issue using the format function from a pyseq sequence, the padding info is missing in pyseq-0.6.0 but working in pyseq-0.5.1.
For exemple:
Gives me in in pyseq v0.5:
3 myshot.%05d.jpg [41429-41431]
But same code gives in new version (0.6.0):
3 myshot.%d.jpg [41429-41431]
The
05
is missing, should be%05d
. I've tried with sequences with 4, 5 digits padding, and various formats.My 2nd issue:
I've a very long sequence with 5 digits and this is not listed as a single sequence but two separated.
Exemple, these frames:
Give:
<pyseq.Sequence "SHOT.46997-46999.exr">, <pyseq.Sequence "SHOT.46997-46999.jpg">, <pyseq.Sequence "SHOT_47000-47003.exr">, <pyseq.Sequence "SHOT_47000-47003.jpg">,
Is it normal ? Am I missing something ?
Thank you & best
The text was updated successfully, but these errors were encountered: