From 8aefc5697ebf6f389bf3f87ddd662c4aace1514f Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Fri, 28 May 2021 18:33:25 +0200 Subject: [PATCH] Settings: adding schema for custom templates --- .../schemas/template_workfile_options.json | 35 +++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/openpype/settings/entities/schemas/projects_schema/schemas/template_workfile_options.json b/openpype/settings/entities/schemas/projects_schema/schemas/template_workfile_options.json index 150f52113b..b3cc91d376 100644 --- a/openpype/settings/entities/schemas/projects_schema/schemas/template_workfile_options.json +++ b/openpype/settings/entities/schemas/projects_schema/schemas/template_workfile_options.json @@ -10,13 +10,36 @@ "label": "Create first workfile", "default": false }, - { - "type": "path", - "key": "template_path", - "label": "First workfile Template", - "multiplatform": true, - "multipath": false + "type": "list", + "key": "custom_templates", + "label": "Custom templates", + "is_group": true, + "use_label_wrap": true, + "object_type": { + "type": "dict", + "children": [ + { + "type": "task-types-enum", + "key": "task_types", + "label": "Task types" + }, + { + "type": "splitter" + }, + { + "type": "label", + "label": "Absolute path to workfile template or OpenPype Anatomy text is accepted." + }, + { + "type": "path", + "key": "path", + "label": "Path", + "multiplatform": true, + "multipath": false + } + ] + } }, { "type": "boolean",