mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix(global): data.path without hashes
- removing hashes from data.path
This commit is contained in:
parent
4dee025cfe
commit
b170fe1a6f
1 changed files with 17 additions and 8 deletions
|
|
@ -314,8 +314,14 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
||||||
index_frame_start = int(repre.get("frameStart"))
|
index_frame_start = int(repre.get("frameStart"))
|
||||||
|
|
||||||
dst_padding_exp = src_padding_exp
|
dst_padding_exp = src_padding_exp
|
||||||
|
dst_start_frame = None
|
||||||
for i in src_collection.indexes:
|
for i in src_collection.indexes:
|
||||||
src_padding = src_padding_exp % i
|
src_padding = src_padding_exp % i
|
||||||
|
|
||||||
|
# for adding first frame into db
|
||||||
|
if not dst_start_frame:
|
||||||
|
dst_start_frame = src_padding
|
||||||
|
|
||||||
src_file_name = "{0}{1}{2}".format(
|
src_file_name = "{0}{1}{2}".format(
|
||||||
src_head, src_padding, src_tail)
|
src_head, src_padding, src_tail)
|
||||||
|
|
||||||
|
|
@ -326,19 +332,22 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
||||||
dst_padding = dst_padding_exp % index_frame_start
|
dst_padding = dst_padding_exp % index_frame_start
|
||||||
index_frame_start += 1
|
index_frame_start += 1
|
||||||
|
|
||||||
dst = "{0}{1}{2}".format(dst_head, dst_padding, dst_tail).replace("..", ".")
|
dst = "{0}{1}{2}".format(
|
||||||
|
dst_head,
|
||||||
|
dst_padding,
|
||||||
|
dst_tail).replace("..", ".")
|
||||||
|
|
||||||
self.log.debug("destination: `{}`".format(dst))
|
self.log.debug("destination: `{}`".format(dst))
|
||||||
src = os.path.join(stagingdir, src_file_name)
|
src = os.path.join(stagingdir, src_file_name)
|
||||||
|
|
||||||
self.log.debug("source: {}".format(src))
|
self.log.debug("source: {}".format(src))
|
||||||
instance.data["transfers"].append([src, dst])
|
instance.data["transfers"].append([src, dst])
|
||||||
|
|
||||||
repre['published_path'] = "{0}{1}{2}".format(dst_head,
|
dst = "{0}{1}{2}".format(
|
||||||
dst_padding_exp,
|
dst_head,
|
||||||
dst_tail)
|
dst_start_frame,
|
||||||
# for imagesequence version data
|
dst_tail).replace("..", ".")
|
||||||
hashes = '#' * len(dst_padding)
|
repre['published_path'] = dst
|
||||||
dst = os.path.normpath("{0}{1}{2}".format(
|
|
||||||
dst_head, hashes, dst_tail))
|
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Single file
|
# Single file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue