hound(sp): suggestions

This commit is contained in:
Jakub Jezek 2020-08-10 16:39:06 +02:00
parent 0931b067fd
commit a3e8828ad1
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3
5 changed files with 1 additions and 31 deletions

View file

@ -49,9 +49,6 @@ class ExtractBurnin(pype.api.Extractor):
fields = None
def process(self, instance):
representation = instance.data["representations"]
self.log.debug(f"_ representation: {representation}")
# ffmpeg doesn't support multipart exrs
if instance.data.get("multipartExr") is True:
instance_label = (

View file

@ -50,9 +50,6 @@ class ExtractReview(pyblish.api.InstancePlugin):
to_height = 1080
def process(self, instance):
representation = instance.data["representations"]
self.log.debug(f"_ representation: {representation}")
# ffmpeg doesn't support multipart exrs
if instance.data.get("multipartExr") is True:
instance_label = (

View file

@ -3,6 +3,7 @@ import re
import os
from avalon import io
class CollectHierarchyInstance(pyblish.api.ContextPlugin):
"""Collecting hierarchy context from `parents` and `hierarchy` data
present in `clip` family instances coming from the request json data file

View file

@ -1,7 +1,6 @@
import os
import clique
import pype.api
import pype.lib as plib
from pprint import pformat

View file

@ -1,24 +0,0 @@
# Check for clips with the same range
# this is for testing if any vertically neighbouring
# clips has been already processed
clip_matching_with_range = next(
(k for k, v in context.data["assetsShared"].items()
if (v.get("_clipIn", 0) == clip_in)
and (v.get("_clipOut", 0) == clip_out)
), False)
# check if clip name is the same in matched
# vertically neighbouring clip
# if it is then it is correct and resent variable to False
# not to be rised wrong name exception
if asset in str(clip_matching_with_range):
clip_matching_with_range = False
# rise wrong name exception if found one
assert (not clip_matching_with_range), (
"matching clip: {asset}"
" timeline range ({clip_in}:{clip_out})"
" conflicting with {clip_matching_with_range}"
" >> rename any of clips to be the same as the other <<"
).format(
**locals())