mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
update changes from PR extract review reformat issue #166
This commit is contained in:
parent
fe777569db
commit
179f0e2e46
3 changed files with 11 additions and 4 deletions
|
|
@ -1669,6 +1669,7 @@ class ExporterReviewMov(ExporterReview):
|
||||||
if any(colorspaces):
|
if any(colorspaces):
|
||||||
# OCIOColorSpace with controled output
|
# OCIOColorSpace with controled output
|
||||||
dag_node = nuke.createNode("OCIOColorSpace")
|
dag_node = nuke.createNode("OCIOColorSpace")
|
||||||
|
self._temp_nodes.append(dag_node)
|
||||||
for c in colorspaces:
|
for c in colorspaces:
|
||||||
test = dag_node["out_colorspace"].setValue(str(c))
|
test = dag_node["out_colorspace"].setValue(str(c))
|
||||||
if test:
|
if test:
|
||||||
|
|
|
||||||
|
|
@ -1323,7 +1323,7 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
||||||
delivery_ratio_test = float(
|
delivery_ratio_test = float(
|
||||||
"{:0.2f}".format(delivery_ratio))
|
"{: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) / (
|
scale_factor = float(self.to_width) / (
|
||||||
resolution_width * pixel_aspect)
|
resolution_width * pixel_aspect)
|
||||||
if int(scale_factor * 100) == 100:
|
if int(scale_factor * 100) == 100:
|
||||||
|
|
|
||||||
|
|
@ -67,9 +67,15 @@ class ExtractReviewSlate(pype.api.Extractor):
|
||||||
delivery_ratio_test = float(
|
delivery_ratio_test = float(
|
||||||
"{:0.2f}".format(delivery_ratio))
|
"{:0.2f}".format(delivery_ratio))
|
||||||
|
|
||||||
if resolution_ratio_test < delivery_ratio_test:
|
if resolution_ratio_test != delivery_ratio_test:
|
||||||
scale_factor = float(to_width) / (
|
scale_factor = (
|
||||||
resolution_width * pixel_aspect)
|
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))
|
self.log.debug("__ scale_factor: `{}`".format(scale_factor))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue