I wrote an extension to the standard Maya UI which contains an Outliner Editor whose items are filtered with an itemFilter.
The problem is, that as soon as this itemFilter gets created it is placed in the dg and marks the scene as modified. So, when I want to open a file, i am required to save the current scene first. A strange thing is that I'm not even asked if I don't want to save the file. The "Save As..." File Browser just pops up expecting me to save the file.
The script building that extension is parsed when Maya loads, so that in any case the first blank scene get's this itemFilter inserted, and usually I want to discard this blank scene to load another one, so you can imagine the hassle.
Is there a possibility of using an itemFilter without it affecting the scene in the sense that it just exists but doesn't alter the scene. I believe that this is not possible, but one never knows...
Any alternatives?