QUOTE(rasengan @ 07/13/06, 09:03 PM) [snapback]242381[/snapback]
I want to seamlessly assure that the data save in the file is the same as the data in the database. From all your comments it looks like I need to go to the API to do this.
Nobody said that. Anyway we object actualy making modifications like thiui to maya bacuse it HURTS the user. All you do is you override:
SaveScene, (evenbody shoul have known this having a problem witha shortcut is as ridiculous as saying fish need bicycles), like above jut put some action to this. This overrides a person pressing ctrl-S, aswell as any actions taken by file -> save scene.
SaveSceneAs. this overrides the file-> save Scene as...
And possibly if you need the options sanely:
SaveSceneOptions
SaveSceneAsOptions
This takes care of EVERYTHING except using save form commandline, or script so normal users are safe by that. However you will not want to override those script saves API OR NOAPI, because the user of those scripts MAY use those saves as means to get into a maya ascii code of somekind or embed MI code (and want maya to parse it out). THis also incidentaly BREAKS svreal factoruyscripts form working 100%properly such as calling batch render (no biggie this offcourse goes to your renderfarm). Anyway telling td to avid sonething because of this and that iis better because otherwise they build cludge on cludge to avoid it. Bavcuse quite frankly they will get around it no matter what you do excluding shooting them in the head.
You may want to also override following
Export;
ExportSelection;
corresponding options.
hyperShadePanelMenuCommand("hyperShadePanel1", "exportSelectedNetwork");
However what ID do i let the operating sytem chek for this (it has a sevice for this youknow). And yes i do use cvs for saves, as well as drop in folders. Works fine . As for going into api we-el you can do that but you automaticaly break alot of safety features in your maya. And its not simpler. All i said was if you are one of those pedantic people who think in line i must be 100% sure then to your dismay i will say ITS NOT. the api solution isnt any safer than overriding.
Note that from apis point of view export is the same as save as! An yes by the way ive had this discussion about 20 times ive tested their way see it break and gone back to mine 