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"]),