kojala, I may be way off. But if both Maya and Photoshop have the file open at the same time. neither will be able to overwrite it. As I read what you have written, you have the file open by two different programs at the same time.
Challenge me and I will try. Because If I should fail, failure also has a prize (Knowledge).