Countdown to the Autosave

Has anyone seen or done a script that will count down the time to the next autosave. I deal with large files quite often and the one I'm working with now takes about 5 minutes to save. It would be cool if there was something that would show me when the next autosave was going to happen so I could create a good stopping point for the save to commence and not have it hit me in the middle of an operation and have to wait till the save is completed and remember what i was doing 5 minutes earlier. I guess it could use the setting you specify in the preferences and use a clock to countdown or count up that time, and then start again after the save is complete. It would also be nice if it would count up the save process so you could have an idea when the save is going to complete.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
br0t's picture

ok this script is dirty and

ok this script is dirty and uses some funny workarounds, but as far as i have tested, it works. main thing i used is a forced autobackup after the timer hits zero. this happens quite often, because of the still-existing offset of 1 or 2 seconds, buts i don't think its a big problem, cause it synchronizes every autobackup.one think that took me reaaaallly long to figure out, was how to iterate the f****ing progress bar in the right way ^^

Maybe you cant test it and tell me what you think, and what i can improve. maybe i can find a way to show the approximate saving time or at least print out the time the last saving took.
i've left some comments in the file, you can view them with notepad or inside maxscript.

installation: just run it in 3dsmax "utilities->maxscript->run script" and add: "Customize->Customize User interfaces" to a QuadMenu/Menu/Toolbar/Button. you'll find it in the "Custom" category.

greetings

AttachmentSize
autobakTimer.ms 6.08 KB

Never get low & slow & out of ideas

D.R.F.'s picture

Br0t This is cool, I don't

Br0t

This is cool, I don't know anything about scripting yet so if it's dirty or not I would't know it. I think you did a great job. What does the Skip do? It would be nice if the bar could be docked to a tool bar if you wanted to. Also can this be made adjustable, to adjust the size of the progres bar. I really like the way you made it change colors 1/2 way through and turn red just before it goes to the Autosave. Other than that, I think it's going to be a great tool, many thanks good man.

br0t's picture

Hey, i thought this would be

Hey,
i thought this would be easy to solve, but it turned out to be a much more challenging experience for me, as i am still a very beginner in scripting....

it seems that there is no easy way to access the internal "autobackup-timer" or whatever you call it. its easy to get the interval for autobackups and count that down with a timer or progress bar, but that won't work. there always is an offset, sometimes a huge one, which i think is a result of the way 3dsmax calculates the time between autobackups: if you don't do anything in the scene, the interval is paused and no autobacking will happen. if you then change anything, it will continue. but since theres no way to access this interval (except its starting value), i don't know how to deal with it.
i will open a thread for this in the scripting forum, i bet someone can help :)
greetings

Never get low & slow & out of ideas

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.