This is good advice. Also have similar conversations with the new director.
"I'm here to support you, and am committed to turning around this project. Long term, I would also like to return to working in X domain, so please keep me in mind when opportunities for that come up."
"I'm here to support you, and am committed to turning around this project. Long term, I would also like to return to working in X domain, so please keep me in mind when opportunities for that come up."