[Maya][Python] scriptNodes on open OR close

Hey all,

This is driving me crazy - I have two scriptNodes with Python code. I need the 1st to execute when the file opens, and the the 2nd to execute when the file is closed. As far as I can tell from the documentation, I need to set the two separate scriptNodes to “Before” and “After” in the expression editor. However, when I set one of them to “Before” it changes both of them. If I set one of them to “After” it changes both of them too. I can’t for the life of me figure out how to set one to before, and the other to after.

Please help before I loose my mind!

you should look into using Events and Conditions rather than Script Nodes.
With the Python API or PyMel you can access all the conditions and events in the API.