From 095883c0b0e3af917da931000ee66cd0d246b77b Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Tue, 1 Dec 2020 16:55:57 +0100 Subject: [PATCH] make sure current project is selected project --- pype/plugins/tvpaint/publish/collect_workfile_data.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pype/plugins/tvpaint/publish/collect_workfile_data.py b/pype/plugins/tvpaint/publish/collect_workfile_data.py index cf6113740c..c6179b76cf 100644 --- a/pype/plugins/tvpaint/publish/collect_workfile_data.py +++ b/pype/plugins/tvpaint/publish/collect_workfile_data.py @@ -12,6 +12,9 @@ class CollectWorkfileData(pyblish.api.ContextPlugin): hosts = ["tvpaint"] def process(self, context): + current_project_id = lib.execute_george("tv_projectcurrentid") + lib.execute_george("tv_projectselect {}".format(current_project_id)) + # Collect and store current context to have reference current_context = { "project": avalon.api.Session["AVALON_PROJECT"],