make sure current project is selected project

This commit is contained in:
iLLiCiTiT 2020-12-01 16:55:57 +01:00
parent a0ffcfccaa
commit 095883c0b0

View file

@ -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"],