Incremental Save

50 votes
Version: 
1.0
Date Updated: 
06/24/2010
Author Name: 
Anubis

It's a my super slim version with similar functionality to the Martin Breidt script, that saves incremental file versions while keeping the name of the latest - most-up-to-date version always the same as the original file. This is good for XRef'ing because the filename does not change.

Additional Info: 
macroScript incrementalSave category:"Tools" internalCategory:"Tools" toolTip:"Incremental Save" buttonText:"Incremental Save"
(
    if maxFileName != "" then (
        max saveplus
        TheFile = maxFilePath + (trimRight (getFilenameFile maxFileName) "1234567890") + ".max"
        if doesFileExist TheFile do deleteFile TheFile
        copyFile (maxFilePath + maxFileName) TheFile
    ) else checkForSave()
)

Installation:
Typical/normal macroScript installation (assign it to hotkey/menu)

I.S. designed to serves as a replacement of the default incremental saving routine. The base trick is simple - I.S. made a copy of the last saved version and rename it by removing trailing numbers from its name, so your initial file is always up-to-date.

Usage: Only one important note (!):
If the initial/original file has not number at the end of its name (e.g. "scene.max") then the first incremental save (e.g. "scene01.max") will overwrite the original file. Next saves goes as intended.

And... Always test how works your all new scripts before start to use it in production!

Version Requirement: 
R4+
AttachmentSize
Incremental_Save.mcr1.43 KB

Comments

Comment viewing options

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

I agree the script is simple

I agree the script is simple and I find it in the customize menu, no problems there! BUT as I use it it just adds number at the end of the file just like the ordinary Inc save feature... :-(

Anubis's picture

Hey Masses

The code is simple and the description of what it do is pretty clear. Yes, the script use Max native save+ command and made a file copy of the last saved version but w/o trail digits.

my recent MAXScripts RSS (archive here)

Massemannen's picture

2012 compatible?

Hi Anubis!

This is exactly what I´m looking for! However I can´t get it too work properly! I got the impression that the file name should stay intact but this functions just like the ordinary native inc.save feature in 3dsmax, ie adding a number every time the file is saved.
I´m using 3dsmax 2012 Design if that is relevant.

Take care
M

Anubis's picture

Hey Crystal3d

Why not :) if you explain how it s'd work, just to save a time for experiments, you know ;)

my recent MAXScripts RSS (archive here)

crystal3d's picture

Hey Anubis

May i kindly request a script "Incremental Save selected".

Anubis's picture

Thanks for the comments, and

Thanks for the comments, and yep, I think I catch the point and correct my description by replacing "same as" to "similar to". Also rename my macros name to incrementalSave2, just in case someone wish/try to install both versions at the same station. Some notes to the script added too.

Cheers

my recent MAXScripts RSS (archive here)

veneta's picture

@Anubis - Nice done men,

@Anubis - Nice done men, thank you for the script! A point from me :)

@Martin - I see the difference between both scripts but don't see any confusion with their names. Anubis include a link to your script so finally you win additional attention to yours script.

@both - keep up the good work, guys!

Anubis's picture

My approach is different so

My approach is different so of course cannot be exactly the same as yours, and about the name... what would you suggest me to rename to? Thanks.

my recent MAXScripts RSS (archive here)

Martin Breidt's picture

Nice and short, but it does

Nice and short, but it does not really do the same as the original incrementalSave script. And I would prefer if you used a different name for this script to avoid confusion, thank you.

Comment viewing options

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