From 36ba36f52cbf24c1a09b174c8c1fdfa1d5810747 Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Tue, 8 Feb 2022 22:54:13 +0100 Subject: [PATCH] fix messages --- .../hosts/maya/plugins/publish/validate_maya_units.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openpype/hosts/maya/plugins/publish/validate_maya_units.py b/openpype/hosts/maya/plugins/publish/validate_maya_units.py index 1db10fcca8..db0f48279f 100644 --- a/openpype/hosts/maya/plugins/publish/validate_maya_units.py +++ b/openpype/hosts/maya/plugins/publish/validate_maya_units.py @@ -37,6 +37,8 @@ class ValidateMayaUnits(pyblish.api.ContextPlugin): # fps to two decimal places but Maya 2019+ is reporting those fps # with much higher resolution. As we currently cannot fix Ftrack # rounding, we have to round those numbers coming from Maya. + # NOTE: this must be revisited yet again as it seems that Ftrack is + # now flooring the value? fps = float_round(context.data['fps'], 2, ceil) asset_fps = lib.get_asset()["data"]["fps"] @@ -53,7 +55,8 @@ class ValidateMayaUnits(pyblish.api.ContextPlugin): and linearunits and linearunits != self.linear_units ): - self.log.error("Scene linear units must be centimeters") + self.log.error("Scene linear units must be {}".format( + self.linear_units)) valid = False if ( @@ -61,7 +64,8 @@ class ValidateMayaUnits(pyblish.api.ContextPlugin): and angularunits and angularunits != self.angular_units ): - self.log.error("Scene angular units must be degrees") + self.log.error("Scene angular units must be {}".format( + self.angular_units)) valid = False if self.validate_fps and fps and fps != asset_fps: