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.
real08121985's picture

Might be useful if you can

Might be useful if you can also clear object ids and material id channels. Tooltips added to the buttons too.

real08121985's picture

Thanks! Script is updated, it

Thanks! Script is updated, it is also a macro again.

appius's picture

those notetracks scripts are

those notetracks scripts are too longs. it takes hours to clean.
you'd better follow those instructions:

- open the MAXScript Listener, and type / copy and paste :

trackViewNodes[#Max_MotionClip_Manager].track = copy trackViewNodes[#Max_MotionClip_Manager].track

- Hit enter, then type

gc()

- And hit enter again

http://forums.cgarchitect.com/35748-max-file-grew-too-big-pls-help-5.html

DeanPunchard's picture

Would it be possible to have

Would it be possible to have a progress bar for those massive files?

Also, do you know what causes notetracks to appear, as it seems like every other file of mine has millions of tracknotes?

Thanks,

Dean

real08121985's picture

Congrats, 18 million

Congrats, 18 million notetracks is a new record, we only achieved 2 millions yet :) That is the reason why cleaner wont respond, it just needs a long time to clean your scene. You might wanna try ctrl+n, this will get rid of the notetracks too, but alot faster.

tassel's picture

Tip: - Clean Unused Materials

Tip:
- Clean Unused Materials from scene ;o)
- colapse Materials with same names to one

Again, very good script with great potential :)

/ Raymond

barigazy's picture

Awesome cleaner tool.

Awesome cleaner tool. Something like Windows Cleaner but
only for Max. Nice work .+1

bga

DeanPunchard's picture

Cleaner (Not Responding)

Hi,

I have a problem file or two, and wanted to check out your cleaner script, but when I run it on the file, Max freezes when I click Clean all selected - "Cleaner (Not Responding)", and I have to kill the 3Ds Max process.

I am running 3Ds Max Design 2012 x64, on Windows 7 Pro x64.

Also, what is a large and small ammount of notetracks to have in a scene? The one I am testing says it has 18385920, is that a lot or a little?

Thanks,

Dean

spacefrog's picture

Looks like a great idea &

Looks like a great idea & script !
What would be of great benefit regarding filsizes too, would be biped pose collection cleaning. They tend to slow savings down.There was even a bug some versions ago, where biped generated loads and loads of poses, adding 100's of megabytes to the filesize.
Might be a good idea for a cleaning task...

EDIT:
just looked up the docs, and the mxs interface exposes handy functions for this...

biped.deleteAllCopyCollections <biped_ctrl> 
real08121985's picture

A "garbage collector" for

A "garbage collector" for maxscenes sounds handy. The script layout is now procedural, you can add your own tasks easily into the struct at the beginning. Maybe share some cool cleaningtasks so they can be added into the script.

I had a look into removing callbacks but it seems impossible to determine persistent callbacks and kinda tricky to remove just certain callbacks. callbacks.removeScripts() and deleteAllChangeHandlers() would erase every scripted callback/changehandler, dunno if thats what people want since some might be important to keep if you got important scripts running in your pipeline that are adding callbacks.

Comment viewing options

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