From 8c3d5be711bccb68f4c7897505c0a83d1b9cef37 Mon Sep 17 00:00:00 2001 From: FadyFS Date: Mon, 12 Jun 2023 11:08:12 +0200 Subject: [PATCH] reviews --- .../hosts/maya/plugins/load/load_arnold_standin.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/openpype/hosts/maya/plugins/load/load_arnold_standin.py b/openpype/hosts/maya/plugins/load/load_arnold_standin.py index 92b1433bb3..0b75915cb5 100644 --- a/openpype/hosts/maya/plugins/load/load_arnold_standin.py +++ b/openpype/hosts/maya/plugins/load/load_arnold_standin.py @@ -19,10 +19,7 @@ from openpype.hosts.maya.api.pipeline import containerise def is_sequence(files): sequence = False - if len(files) == 1: - collections, remainder = clique.assemble(files, minimum_items=1) - else: - collections, remainder = clique.assemble(files) + collections, remainder = clique.assemble(files, minimum_items=1) if collections: sequence = True return sequence @@ -93,9 +90,7 @@ class ArnoldStandinLoader(load.LoaderPlugin): sequence = is_sequence(os.listdir(os.path.dirname(self.fname))) cmds.setAttr(standin_shape + ".useFrameExtension", sequence) - fps = float(version["data"].get("fps")) - if fps is None: - fps = get_current_fps() + fps = float(version["data"].get("fps"), get_current_fps()) cmds.setAttr(standin_shape + ".abcFPS", fps) nodes = [root, standin, standin_shape] @@ -161,7 +156,6 @@ class ArnoldStandinLoader(load.LoaderPlugin): type="string" ) - # Object name value cmds.connectAttr( string_replace_operator + ".out", "{}.inputs[{}]".format(