Cleaner

Date Updated: 
05/09/2012
Author Name: 
Andreas Meissner

Problem: The filesize of scenes suddenly increases dramatically. This slows down the workflow since every manual-save and autobackup-save takes long and it fills your fileserver with maxfiles that are very big.

Reason: 3ds max adds notetracks and reactor-collisions to the scene. A common workaround for this problem is ctrl+N (New Scene: Keep Objects and Hierarchy) or to merge your scene into an empty new scene.

Solution: This simple script deletes the notetracks and reactor-collisions. It also got some other cleaning-tasks.

 

IMPORTANT: If you got xrefs in your scene and you wonder why you always get notetracks again after using the cleaner: you got to clean the xrefs too.

 

I DONT GIVE ANY WARRANTY, USE AT OWN RISK, BETTER SAVE SCENE BEFORE USE

 

Additional Info: 

Customize > Category: "# Scripts"

Version Requirement: 
tested in 2009, 2012 with Vray
AttachmentSize
cleaner.ms2.4 KB
cleaner2.ms3.61 KB
cleaner3.ms3.64 KB
cleaner4.ms5.85 KB
cleaner5.ms12.24 KB
cleaner6.ms27.33 KB
cleaner7.ms28.3 KB
cleaner8.ms27.6 KB

Comments

Comment viewing options

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

Script does not remove

Script does not remove Notetracks anymore. 3ds max 2014

barigazy's picture

...

It's simple

fn removeEmptySets = if selectionSets.count != 0 do
(
    for i = selectionSets.count to 1 by -1 where getNamedSelSetItemCount i == 0 do deleteItem selectionSets i
)

barigazy

jsrocha's picture

remove empty selection sets

Hi, could you implement an option to clean only empty selection sets? is it possible?
thanks,

Jsrocha

real08121985's picture

If you like upload the file

If you like upload the file so I can check the script on it.

pieforme's picture

error removing missing plugin

I am trying to remove some brazil1 stuff from an old file in Max 2012, and I am getting the following error --Unknown propert:"cLab5" in Rollout. Any ideas?

Thanks

fajar's picture

better UI with dotnet ?

better UI with dotnet ?

crystal3d's picture

1.6 million notetracks

all residing in motiondata section and i could not remove them untill your latest version! thanks again!!!!

obaida's picture

I'm talking about the ui of

I'm talking about the menu of this script , by replacing the last line of the script
(createDialog cCleanerRollout .....)
with
(NewFloater = newRolloutFloater "Cleaner 8" 400 650
addrollout cCleanerRollout NewFloater)
this menu have the ability to scroll , and that will be better

mad's picture

try to add ability to remove

try to add ability to remove persistent globas from scene, it can be handy in some cases

edit: not all but by list u can use this code with combination with listbox

persistGlobs = persistents.gather() --gather all persistents
persistGlobsCount = persistGlobs.count -- count them
persistents.remove persistGlobs[#glob name] --remove given persistent

real08121985's picture

floater? Please explain what

floater? Please explain what functionality you miss.

Comment viewing options

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