update changes from PR extract review reformat issue #166

This commit is contained in:
iLLiCiTiT 2020-05-21 15:41:59 +02:00
parent fe777569db
commit 179f0e2e46
3 changed files with 11 additions and 4 deletions

View file

@ -1669,6 +1669,7 @@ class ExporterReviewMov(ExporterReview):
if any(colorspaces):
# OCIOColorSpace with controled output
dag_node = nuke.createNode("OCIOColorSpace")
self._temp_nodes.append(dag_node)
for c in colorspaces:
test = dag_node["out_colorspace"].setValue(str(c))
if test:

View file

@ -1323,7 +1323,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
delivery_ratio_test = float(
"{:0.2f}".format(delivery_ratio))
if resolution_ratio_test < delivery_ratio_test:
if resolution_ratio_test != delivery_ratio_test:
scale_factor = float(self.to_width) / (
resolution_width * pixel_aspect)
if int(scale_factor * 100) == 100:

View file

@ -67,9 +67,15 @@ class ExtractReviewSlate(pype.api.Extractor):
delivery_ratio_test = float(
"{:0.2f}".format(delivery_ratio))
if resolution_ratio_test < delivery_ratio_test:
scale_factor = float(to_width) / (
resolution_width * pixel_aspect)
if resolution_ratio_test != delivery_ratio_test:
scale_factor = (
float(to_width) / (
resolution_width * pixel_aspect)
)
if int(scale_factor * 100) == 100:
scale_factor = (
float(to_height) / resolution_height
)
self.log.debug("__ scale_factor: `{}`".format(scale_factor))