Go Back   AC3D Forums > General > AC3D General
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 15th October 2013, 05:39 AM   #1
coldby
Senior Member
Professional user
 
Join Date: Jun 2006
Posts: 102
Default Please help me save some time

A small, insignificant problem:
each time I open an old AC3D file to see what's inside and look around a little, as I close it back to check the next one I get the question "There are unsaved changes. Save before exiting?" even if I didn't touch a thing but the point of view (which as far as I know doesn't get saved anyway).

Well, in so many years I managed to contrive quite a lot of .ac models (never counted them all, but it must be a 4-digit figure), most of them now deeply buried in the fogs of past. Answering "no thanks" only once is a cinch but doing it a hundred times becomes slightly annoying.
Does anyone know a way around?

Thanks!
coldby is offline   Reply With Quote
Old 12th November 2013, 08:03 AM   #2
Geoffm
Junior Member
Member
 
Geoffm's Avatar
 
Join Date: Aug 2013
Location: London UK
Posts: 22
Default Re: Please help me save some time

The message you see are made by tk_messageBox. There is a fix I posted under the forum "AC3D Scripts and Mods" called "Disable tk_messageBox using global variable".
This replaces tk_messageBox with a function which always returns 'no' (or Yes or Cancel or whatever the button you need to press is labelled).

You should of course only replace tk_messageBox while you are performing a long series of changes. Perhaps this function attached to a menu item (in a Tcl script) might help.

Code:
proc autoloadsave {} {
  rename tk_messageBox tk_messageOriginal
  proc tk_messageBox {args} { return "No" }
#
# ... do all your scripted operations which require reply No from the save? box
#
  rename tk_messageBox {}
  rename tk_messageOriginal tk_messageBox 
}
You could implement 2 menu items - one to disable the tk_messageBox and one to re-enable it.

While the tk_messageBox is disabled some other warnings will not appear, possibly using the response you programmed to perform an undesirable action - user beware!
Geoffm is offline   Reply With Quote
Old 14th November 2013, 06:26 AM   #3
coldby
Senior Member
Professional user
 
Join Date: Jun 2006
Posts: 102
Default Re: Please help me save some time

Thanks Geoffm, I think it should do. Maybe I'll use it just for one huge tide-up session, then back to normality.
I owe you at least 4 days*) of my lifetime


*) no kidding: 2 secs to click "no" x ~3000 files...
coldby is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -4. The time now is 07:30 PM.


AC3D Forum
(C) Inivis Limited 2020