PYPE-1343 - added project and task into context window

This commit is contained in:
Petr Kalis 2021-10-14 16:27:43 +02:00
parent 049ea39a70
commit 8d69283b8a

View file

@ -313,9 +313,15 @@ def on_task_changed(*args):
lib.set_context_settings()
lib.update_content_on_context_change()
msg = " project: {}\n asset: {}\n task:{}".format(
avalon.Session["AVALON_PROJECT"],
avalon.Session["AVALON_ASSET"],
avalon.Session["AVALON_TASK"]
)
lib.show_message(
"Context was changed",
("Context was changed to {}".format(avalon.Session["AVALON_ASSET"])),
("Context was changed to:\n{}".format(msg)),
)