From cd884e84277df0307b027a084d58ba48b817e332 Mon Sep 17 00:00:00 2001 From: Thomas Fricard Date: Wed, 12 Apr 2023 13:58:40 +0200 Subject: [PATCH] add a setting in maya project settings to enable updating animation instances --- .../defaults/project_settings/maya.json | 3 ++ .../projects_schema/schema_project_maya.json | 32 +++++-------------- 2 files changed, 11 insertions(+), 24 deletions(-) diff --git a/openpype/settings/defaults/project_settings/maya.json b/openpype/settings/defaults/project_settings/maya.json index a2a43eefb54..2660fc7360f 100644 --- a/openpype/settings/defaults/project_settings/maya.json +++ b/openpype/settings/defaults/project_settings/maya.json @@ -456,6 +456,9 @@ "destination-path": [] } }, + "update_instances": { + "enabled": false + }, "scriptsmenu": { "name": "OpenPype Tools", "definition": [ diff --git a/openpype/settings/entities/schemas/projects_schema/schema_project_maya.json b/openpype/settings/entities/schemas/projects_schema/schema_project_maya.json index b27d7958064..dca648e896a 100644 --- a/openpype/settings/entities/schemas/projects_schema/schema_project_maya.json +++ b/openpype/settings/entities/schemas/projects_schema/schema_project_maya.json @@ -188,35 +188,19 @@ }, { "type": "dict", - "key": "include_handles", "collapsible": true, - "label": "Include/Exclude Handles in default playback & render range", + "key": "update_instances", + "label": "Update animation instances on Reset Frame Range", + "checkbox_key": "enabled", "children": [ { - "key": "include_handles_default", - "label": "Include handles by default", - "type": "boolean" + "type": "label", + "label": "If enabled, the frame range and the handles of all the animation instances will be updated when using the 'Reset Frange Range' functionality" }, { - "type": "list", - "key": "per_task_type", - "label": "Include/exclude handles by task type", - "use_label_wrap": true, - "object_type": { - "type": "dict", - "children": [ - { - "type": "task-types-enum", - "key": "task_type", - "label": "Task types" - }, - { - "type": "boolean", - "key": "include_handles", - "label": "Include handles" - } - ] - } + "type": "boolean", + "key": "enabled", + "label": "Enabled" } ] },