Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1383 from tokejepsen/2.x/feature/maya_context_popup
Browse files Browse the repository at this point in the history
Add task name to context pop up.
  • Loading branch information
mkolar authored Apr 22, 2021
2 parents 7348d92 + c33d971 commit 22f9c62
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pype/hosts/maya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ def on_task_changed(*args):
lib.set_context_settings()
lib.update_content_on_context_change()

lib.show_message("Context was changed",
("Context was changed to {}".format(
avalon.Session["AVALON_ASSET"])))
lib.show_message(
"Context was changed",
"Context was changed to {}/{}".format(
avalon.Session["AVALON_ASSET"], avalon.Session["AVALON_TASK"]
)
)

0 comments on commit 22f9c62

Please sign in to comment.