Cleaner

88 votes
Date Updated: 
09/26/2017
Author Name: 
Andreas Meissner

This tool can help you to clean and speed up your scene. Hover with your cursor over the clean-buttons to see tooltips for further information.

 

Additional Info: 

Installation:

  • Drag and drop the file "install macro.ms" into your scene
  • You can create a toolbar button by using the macro under: Customize > Category: "# Scripts" > Cleaner

Tips:

  • If you look inside the folder .../Cleaner/clean/deactivated/... you can find further functions. To use them you need to move them into the folder  .../Cleaner/clean/...
  • Before cleaning dublicate objects, you should select and isolate these objects to check if they are really dublicates!
  • The "Texture Filtering" will speed up your rendering cause textures like leafes, flowers and ivys will be set to filtering:none, but this will change the look of your rendering, use with care!

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

Version Requirement: 
tested in 2009, 2012 with Vray, 2015 with Vray
AttachmentSize
cleaner8.ms27.6 KB
cleaner_v25.zip25.13 KB

Comments

Comment viewing options

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

syntax error

Hey :D I have tried to import this in to my current script but when I try to run the script it always gives me some kind of syntax error or something (not to mention that I have no clue on scripting :d ) but this looks like it could save a tons of problems :D Would you be kind to provide me script file with imported line/code so that I can compare with mine in order to determine where I went wrong? Thank you very much! :D

nikobus's picture

Thanks!!

Thank you a lot man, you really help me with a big problem in very huge files!
Super useful!

nnq2603's picture

Add a funtion to remove AnimLayerControlManager into Cleaner.

(struct s( tName = "--Scene--AnimLayerControlManager",
 
			tTooltip = "\
			3ds Max tends to automaticly save animation layers stuff. \
			However these animlayers can become quite numerous and dramatically increase the size of your scene and make saving process extremly slow. \
			So it is a good idea to keep an eye on these automaticly created notetracks and clean them from time to time. \
			Remember that you will import animlayers from other files if you are using xrefs. \
			Cleaning just the scene doesn't solve the problem, you got to clean the xref aswell or you will import the animlayers everytime you load the xref.
			",
 
			fn autocount =
			(
				try (getproperty trackviewnodes.Anim_Layer_Control_Manager.controller #animlayers).count catch ("-")
			),
 
			fn clean =
			(
				try 
				(
					(getproperty trackviewnodes.Anim_Layer_Control_Manager.controller #animlayers).count=0
					gc()
				)
				catch()
			)
 
		);)(),

I figure out how to integrate a useful feature into this script (based on Spacefrog answer from Autodesk 4rum - forums[dot]autodesk[dot]com/t5/3ds-max-3ds-max-design-general/3dsmax-2014-huge-filesize-and-empty-file/), since the author of Cleaner no longer update his script. You can just copy the block of code above and paste into between 2 other blocks. Example between 1st and 2nd blocks, then restart max, it'd looks like this:

http://i.imgur.com/jo4KO2P.jpg

AttachmentSize
animlayers.jpg 68.2 KB
nodar1978's picture

I cant see this window in max

Hi Guys, I download all 8 files, and insert them in max2012/script folder, and when i go to run script, i have to run them one by one, any idea how to run complete window?
thank you in advance
Nodar

nnq2603's picture

What's frequent cause "Link Composite cleaning" unfunctional?

I've got some max file always hang at Link Composite cleaning button pressed. Yes, they're modeled from autocad drawing and I wanna try to purge those things. Many times it works. But sometimes, it hangs forever and I have to kill 3dsmax.

So I was curious about what're those frequent cause with Link Composite cleaning? Is there any way to just select object involved them without delete them 'coz seems any time (in the given buggy file) I press that button it hangs the max out (and not recover from that state).

grasshopper's picture

Thanks

Thanks,

I don't intentionally use them either but the scene I am working on seems to have 55 thousand of them! When I clean it reduces to 1 and I cant visually tell the difference, so a very useful little addition :)

real08121985's picture

should only be empty

should only be empty retimers, but better to check it for yourself on a sample scene since the retimer "cleaning got added by suggestion of "hamletik by Artyom and TexeL"

i dont use retimers so i never tested it myself.

grasshopper's picture

retimers

Hi
Thanks for the script it has become an integrated part of my workflow. Could you confirm for me, does the re-timer function remove all re-timers or only empty re-timers?

Thanks

MaximuM's picture

Works fine on Max 2016 here

Hi,
I use Cleaner on Max 2016 without any problem: did you install last Service pack for 3dsmax (sp3) ?
Hope it helps

elartaf's picture

Script for Max 2016

Thank you a lot for this script, I have been using it for a long time, but now I can´t make it works on 3dsmax2016, could someone do anything to fix it?

Thank you!

Comment viewing options

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