mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Padding can get confused when there are other files present.
Validate against source collection.
This commit is contained in:
parent
34df8bae3f
commit
460c601e1a
1 changed files with 4 additions and 2 deletions
|
|
@ -276,9 +276,11 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
||||||
src_head = src_collection.format("{head}")
|
src_head = src_collection.format("{head}")
|
||||||
src_tail = src_collection.format("{tail}")
|
src_tail = src_collection.format("{tail}")
|
||||||
|
|
||||||
|
|
||||||
# fix dst_padding
|
# fix dst_padding
|
||||||
padd_len = len(files[0].replace(src_head, "").replace(src_tail, ""))
|
valid_files = [x for x in files if src_collection.match(x)]
|
||||||
|
padd_len = len(
|
||||||
|
valid_files[0].replace(src_head, "").replace(src_tail, "")
|
||||||
|
)
|
||||||
src_padding_exp = "%0{}d".format(padd_len)
|
src_padding_exp = "%0{}d".format(padd_len)
|
||||||
|
|
||||||
test_dest_files = list()
|
test_dest_files = list()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue