From 75cbb65c1774b9edd8877f48313684f991e939cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Samohel?= Date: Fri, 19 Apr 2024 14:53:16 +0200 Subject: [PATCH] :recycle: use clipIn/Out for multi-shot --- .../hosts/maya/plugins/create/create_multishot_layout.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/client/ayon_core/hosts/maya/plugins/create/create_multishot_layout.py b/client/ayon_core/hosts/maya/plugins/create/create_multishot_layout.py index abad1e3de0..6b7a9f7504 100644 --- a/client/ayon_core/hosts/maya/plugins/create/create_multishot_layout.py +++ b/client/ayon_core/hosts/maya/plugins/create/create_multishot_layout.py @@ -163,9 +163,12 @@ class CreateMultishotLayout(plugin.MayaCreator): shot_name = f"{shot['name']}%s" % ( f" ({shot['label']})" if shot["label"] else "") - shot_node = cmds.shot(sequenceStartTime=shot["attrib"]["clipIn"], - sequenceEndTime=shot["attrib"]["clipOut"], - shotName=shot_name) + shot_node = cmds.shot( + sequenceStartTime=shot["attrib"]["clipIn"], + sequenceEndTime=shot["attrib"]["clipOut"], + startTime=shot["attrib"]["clipIn"], + endTime=shot["attrib"]["clipOut"], + shotName=shot_name) # Create layout instance by the layout creator