Notice to the tips below:
- Change the category name to something you like.
- Change the icons to something else if you like
- The script names aren’t always smart - so change it if you like
Also, please note that I am not the author of the scripts. I might have altered some from their original state.
Autobackup on-off toggle
It indicates whether or not Autobackup is on. When you restart Max, it falls back to the default setting you set.
I use to set it to ON, but sometimes, during tests or so, and especially on heavy scenes I simply want to turn it off.
Wish: A timer that tells you to turn it back on after X amount of time.
macroScript AutoBackToggle
category:"Haider"
buttonText:"AB-Toggle"
toolTip:"AutoBackup Toggle"
icon:#("containers",11)
(
on isChecked do (autoBackup.enabled)
on execute do
if autoBackup.enabled == true then
(
autoBackup.enabled = false
messageBox "Autobackup disabled." title:"Autobackup State" beep:false
)
else
(
autoBackup.enabled = true
messageBox "Autobackup enabled." title:"Autobackup State" beep:false
)
)
Incremental Save
Similar to Save As and pressing the + button.
This one does an incremental save plus saves the filename without any number. You will always have a file.max and a filexx.max (where xx are digits).
Wish: A way to make these scripts to replace the regular save. An idea would be that first time you save, you’ll be asked whether you want to save a regular save or a incremental save. If its an old scene and you might have done an incremental save, it asks you whether you want to turn on this feature or stay on regular save.
I dont have the perfect answer to this myself, so question is how to design the workflow and then build the script.
macroScript incrementalSavePlus category:"Haider" internalCategory:"Haider" toolTip:"Incremental Save Plus" buttonText:"Incremental Save Plus" icon:#("incrementalSave",2)
(
if maxFileName != "" then (
max saveplus
TheFile = maxFilePath + (trimRight (getFilenameFile maxFileName) "1234567890") + ".max"
if doesFileExist TheFile do deleteFile TheFile
copyFile (maxFilePath + maxFileName) TheFile
) else checkForSave()
)
This one is similar to above, but without the incremental. So basically a Save plus saving a copy without the number suffix.
macroScript incrementalSave category:"Haider" internalCategory:"Haider" toolTip:"Incremental Save" buttonText:"Incremental Save" icon:#("containers",4)
(
if maxFileName != "" then (
max file save
TheFile = maxFilePath + (trimRight (getFilenameFile maxFileName) "1234567890") + ".max"
if doesFileExist TheFile do deleteFile TheFile
copyFile (maxFilePath + maxFileName) TheFile
) else checkForSave()
)