From 7dcd7bc317e28d5258225e41663bb1e67bf543cb Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Fri, 16 Apr 2021 16:15:58 +0200 Subject: [PATCH] fix hound --- openpype/hosts/maya/plugins/load/load_redshift_proxy.py | 3 ++- .../hosts/maya/plugins/publish/extract_redshift_proxy.py | 9 +++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/openpype/hosts/maya/plugins/load/load_redshift_proxy.py b/openpype/hosts/maya/plugins/load/load_redshift_proxy.py index 477d7767b6..4c6a187bc3 100644 --- a/openpype/hosts/maya/plugins/load/load_redshift_proxy.py +++ b/openpype/hosts/maya/plugins/load/load_redshift_proxy.py @@ -119,7 +119,8 @@ class RedshiftProxyLoader(api.Loader): transform. """ - rs_mesh = cmds.createNode('RedshiftProxyMesh', name="{}_RS".format(name)) + rs_mesh = cmds.createNode( + 'RedshiftProxyMesh', name="{}_RS".format(name)) mesh_shape = cmds.createNode("mesh", name="{}_GEOShape".format(name)) cmds.setAttr("{}.fileName".format(rs_mesh), diff --git a/openpype/hosts/maya/plugins/publish/extract_redshift_proxy.py b/openpype/hosts/maya/plugins/publish/extract_redshift_proxy.py index 9dc401858e..3b47a7cc97 100644 --- a/openpype/hosts/maya/plugins/publish/extract_redshift_proxy.py +++ b/openpype/hosts/maya/plugins/publish/extract_redshift_proxy.py @@ -44,12 +44,9 @@ class ExtractRedshiftProxy(openpype.api.Extractor): root, ext = os.path.splitext(file_path) # Padding is taken from number of digits of the end_frame. # Not sure where Redshift is taking it. - repr_files = ["{}.{}{}".format( - root, - str(frame).rjust( - int(math.log10(int(end_frame)) + 1), "0"), - ext, - ) for frame in range( + repr_files = [ + "{}.{}{}".format(root, str(frame).rjust(int(math.log10(int(end_frame)) + 1), "0"), ext) # noqa: E501 + for frame in range( int(start_frame), int(end_frame) + 1, int(instance.data["proxyFrameStep"]),