mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Allow more frames patterns
This commit is contained in:
parent
04c14cab7a
commit
8fbb8c93c1
1 changed files with 4 additions and 1 deletions
|
|
@ -616,9 +616,12 @@ def convert_input_paths_for_ffmpeg(
|
|||
input_info, logger=logger
|
||||
)
|
||||
|
||||
# clique.PATTERNS["frames"] supports only `.1001.exr` not `_1001.exr` so
|
||||
# we use a customized pattern.
|
||||
pattern = "[_.](?P<index>(?P<padding>0*)\\d+)\\.\\D+\\d?$"
|
||||
input_collections, input_remainder = clique.assemble(
|
||||
input_paths,
|
||||
patterns=[clique.PATTERNS["frames"]],
|
||||
patterns=[pattern],
|
||||
assume_padded_when_ambiguous=True,
|
||||
)
|
||||
input_items = list(input_collections)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue