From ceac453ed4e6223a27af1b3aff3a9dcae17ef100 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 3 Nov 2020 19:33:39 +0100 Subject: [PATCH] create beauty has more data --- pype/plugins/tvpaint/create/create_beauty.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pype/plugins/tvpaint/create/create_beauty.py b/pype/plugins/tvpaint/create/create_beauty.py index 08e1262943..c8303c8b11 100644 --- a/pype/plugins/tvpaint/create/create_beauty.py +++ b/pype/plugins/tvpaint/create/create_beauty.py @@ -40,15 +40,19 @@ class CreateBeauty(pipeline.TVPaintCreator): existing_instance_idx = idx break - fill_data = { + self.data["group_id"] = group_id + + name = self.data["subset"] + self.data["name"] = name + + subset_name = self.subset_template.format(**{ "family": self.family, "task": avalon.io.Session["AVALON_TASK"], - "name": "name", + "name": name, "pass": "beauty" - } - subset_name = self.subset_template.format(**fill_data) + }) self.data["subset"] = subset_name - self.data["group_id"] = group_id + if existing_instance is not None: if existing_instance == self.data: self.log.info("Instance to create is same. Did nothing.")