fix hound issues

This commit is contained in:
Ondrej Samohel 2021-06-01 15:27:08 +02:00 committed by Ondrej Samohel
parent 3371e39c83
commit 5806abcd6d
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
3 changed files with 5 additions and 20 deletions

View file

@ -433,18 +433,10 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
app = os.environ.get("AVALON_APP", "")
preview = False
self.log.info("ffffff")
self.log.info(app)
if app in self.aov_filter.keys():
self.log.info("in")
for aov_pattern in self.aov_filter[app]:
self.log.info(aov_pattern)
self.log.info(aov)
if re.match(aov_pattern,
aov
):
if re.match(aov_pattern, aov):
preview = True
self.log.info("{}:{}:{}".format(aov, app, instance_data))
break
new_instance = copy(instance_data)
@ -511,23 +503,18 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
bake_render_path = instance.get("bakeRenderPath", [])
# create representation for every collected sequence
self.log.debug("-------")
for collection in collections:
self.log.debug(collection)
ext = collection.tail.lstrip(".")
preview = False
# if filtered aov name is found in filename, toggle it for
# preview video rendering
for app in self.aov_filter.keys():
self.log.debug(app)
if os.environ.get("AVALON_APP", "") == app:
for aov in self.aov_filter[app]:
self.log.debug(aov)
if re.match(
aov,
list(collection)[0]
):
self.log.info("{}:{}:{}".format(aov, app, instance))
preview = True
break

View file

@ -191,9 +191,9 @@ class ExtractReview(pyblish.api.InstancePlugin):
"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 = []
self.log.info("Is sequence: {}".format(temp_data["input_is_sequence"]))
if temp_data["input_is_sequence"]:
self.log.info("Filling gaps in sequence.")
files_to_clean = self.fill_sequence_gaps(
@ -641,8 +641,6 @@ class ExtractReview(pyblish.api.InstancePlugin):
AssertionError: if more then one collection is obtained.
"""
from pprint import pprint
collections = clique.assemble(files)[0]
assert len(collections) == 1, "Multiple collections found."
col = collections[0]

View file

@ -418,7 +418,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
dst_padding_exp = src_padding_exp
dst_start_frame = None
collection_start = list(src_collection.indexes)[0]
index_frame = index_frame_start
for i in src_collection.indexes:
# TODO 1.) do not count padding in each index iteration
# 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:
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_head,