We have special behavior that is applied during a “Save As” operation that is not applied during a “Save”.
Basically we store meta data inside our Maya files (GUIDs) that should not be present in multiple files.
Thus when an artist tries to save a copy of a file, we clear the meta data during the Save As operation. We hooked our custom code in by overriding the defaultRunTime command for File_SaveAs, but this approach is an ugly hack and I would like to use one of the MEventMessage or MSceneMessage callbacks.
However, there doesn’t seem to be a way to determine if the user is Saving or using Save As. In fact, the documentation makes it clear the events trigger for both operations.
Anyone got a pro tip on how to distinguish between a regular Save and Save As operation?