mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
fix hound issues
This commit is contained in:
parent
3371e39c83
commit
5806abcd6d
3 changed files with 5 additions and 20 deletions
|
|
@ -433,18 +433,10 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
||||||
app = os.environ.get("AVALON_APP", "")
|
app = os.environ.get("AVALON_APP", "")
|
||||||
|
|
||||||
preview = False
|
preview = False
|
||||||
self.log.info("ffffff")
|
|
||||||
self.log.info(app)
|
|
||||||
if app in self.aov_filter.keys():
|
if app in self.aov_filter.keys():
|
||||||
self.log.info("in")
|
|
||||||
for aov_pattern in self.aov_filter[app]:
|
for aov_pattern in self.aov_filter[app]:
|
||||||
self.log.info(aov_pattern)
|
if re.match(aov_pattern, aov):
|
||||||
self.log.info(aov)
|
|
||||||
if re.match(aov_pattern,
|
|
||||||
aov
|
|
||||||
):
|
|
||||||
preview = True
|
preview = True
|
||||||
self.log.info("{}:{}:{}".format(aov, app, instance_data))
|
|
||||||
break
|
break
|
||||||
|
|
||||||
new_instance = copy(instance_data)
|
new_instance = copy(instance_data)
|
||||||
|
|
@ -511,23 +503,18 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
|
||||||
bake_render_path = instance.get("bakeRenderPath", [])
|
bake_render_path = instance.get("bakeRenderPath", [])
|
||||||
|
|
||||||
# create representation for every collected sequence
|
# create representation for every collected sequence
|
||||||
self.log.debug("-------")
|
|
||||||
for collection in collections:
|
for collection in collections:
|
||||||
self.log.debug(collection)
|
|
||||||
ext = collection.tail.lstrip(".")
|
ext = collection.tail.lstrip(".")
|
||||||
preview = False
|
preview = False
|
||||||
# if filtered aov name is found in filename, toggle it for
|
# if filtered aov name is found in filename, toggle it for
|
||||||
# preview video rendering
|
# preview video rendering
|
||||||
for app in self.aov_filter.keys():
|
for app in self.aov_filter.keys():
|
||||||
self.log.debug(app)
|
|
||||||
if os.environ.get("AVALON_APP", "") == app:
|
if os.environ.get("AVALON_APP", "") == app:
|
||||||
for aov in self.aov_filter[app]:
|
for aov in self.aov_filter[app]:
|
||||||
self.log.debug(aov)
|
|
||||||
if re.match(
|
if re.match(
|
||||||
aov,
|
aov,
|
||||||
list(collection)[0]
|
list(collection)[0]
|
||||||
):
|
):
|
||||||
self.log.info("{}:{}:{}".format(aov, app, instance))
|
|
||||||
preview = True
|
preview = True
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -191,9 +191,9 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
||||||
"New representation tags: `{}`".format(new_repre["tags"])
|
"New representation tags: `{}`".format(new_repre["tags"])
|
||||||
)
|
)
|
||||||
|
|
||||||
temp_data = self.prepare_temp_data(instance, repre, output_def)
|
temp_data = self.prepare_temp_data(
|
||||||
|
instance, repre, output_def)
|
||||||
files_to_clean = []
|
files_to_clean = []
|
||||||
self.log.info("Is sequence: {}".format(temp_data["input_is_sequence"]))
|
|
||||||
if temp_data["input_is_sequence"]:
|
if temp_data["input_is_sequence"]:
|
||||||
self.log.info("Filling gaps in sequence.")
|
self.log.info("Filling gaps in sequence.")
|
||||||
files_to_clean = self.fill_sequence_gaps(
|
files_to_clean = self.fill_sequence_gaps(
|
||||||
|
|
@ -641,8 +641,6 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
||||||
AssertionError: if more then one collection is obtained.
|
AssertionError: if more then one collection is obtained.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
from pprint import pprint
|
|
||||||
|
|
||||||
collections = clique.assemble(files)[0]
|
collections = clique.assemble(files)[0]
|
||||||
assert len(collections) == 1, "Multiple collections found."
|
assert len(collections) == 1, "Multiple collections found."
|
||||||
col = collections[0]
|
col = collections[0]
|
||||||
|
|
|
||||||
|
|
@ -418,7 +418,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
||||||
dst_padding_exp = src_padding_exp
|
dst_padding_exp = src_padding_exp
|
||||||
dst_start_frame = None
|
dst_start_frame = None
|
||||||
collection_start = list(src_collection.indexes)[0]
|
collection_start = list(src_collection.indexes)[0]
|
||||||
index_frame = index_frame_start
|
|
||||||
for i in src_collection.indexes:
|
for i in src_collection.indexes:
|
||||||
# TODO 1.) do not count padding in each index iteration
|
# TODO 1.) do not count padding in each index iteration
|
||||||
# 2.) do not count dst_padding from src_padding before
|
# 2.) do not count dst_padding from src_padding before
|
||||||
|
|
@ -433,7 +432,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
if index_frame_start is not None:
|
if index_frame_start is not None:
|
||||||
dst_padding_exp = "%0{}d".format(frame_start_padding)
|
dst_padding_exp = "%0{}d".format(frame_start_padding)
|
||||||
dst_padding = dst_padding_exp % (index_frame_start + frame_number)
|
dst_padding = dst_padding_exp % (
|
||||||
|
index_frame_start + frame_number)
|
||||||
|
|
||||||
dst = "{0}{1}{2}".format(
|
dst = "{0}{1}{2}".format(
|
||||||
dst_head,
|
dst_head,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue