Cleaning a 3DS Max scene

  • Offline / Send Message
  • Joined
  • 15 Topics
  • 91 Replies
I have a problem with a 3DS Max 9 scene which file size increases each time I save it. There was a script or command for older Max versions to clean the scene from garbage. But I can´t remember it. Can anybody help me?

Replies

  • Husch
    • Offline / Send Message
    • Joined
    • 15 Topics
    • 91 Replies
    OK, when I wrote the question I remembered the word "garbage" and a google search gives me the Max Lister command gc(). Unfortunately it doesn´t do the trick. Any other idea to reduce the file size of a saved Max scene? The scene consist of three Characters of moderate polycount (around 5000 Polys) and two Bipeds and a bone rig. The file size is around 130 MB.
  • perna
    • Offline / Send Message
    • Joined
    • 80 Topics
    • 4.9K Replies
    No help from me. All I can say is I've run into the problem of huge file sizes with simple models and would like to know what's up with that as well.
  • Rick Stirling
    • Offline / Send Message
    • Joined
    • 262 Topics
    • 4.1K Replies
    Create a new scene, then merge all the objects from the bloating scene.

    If you don't mind losing all the materials and adding them again aftrwards, sometimes clearing them can help the bloat.

    Clear all the materials from the editor:
    for i = 1 to 24 do
    (
    meditMaterials = Standardmaterial ()
    )


    Then cleanse your scene:

    max select all
    $.material = undefined
  • Eric Chadwick
    • Offline / Send Message
    • Joined
    • 313 Topics
    • 10.2K Replies
    Apparently a known issue at Autodesk. From the sp2 readme...

    [ QUOTE ]
    File I/O:
    • Files saved in 3ds max 9 can grow in size when compared to previous versions of 3ds max.

    [/ QUOTE ]
  • conte
    • Offline / Send Message
    • Joined
    • 58 Topics
    • 2.7K Replies
  • MoP
    • Offline / Send Message
    • Joined
    • 135 Topics
    • 11.5K Replies
    Conte, that's a pretty useless answer, since if you'd read the 2nd post, you'd know he's tried that.
    Also, you should realise that if he didn't know about it, then it's still useless, since it doesn't explain anything about how to use the command, or what it's for.

    Think a bit more before posting, please! I know you're trying to help, but it only works if you actually make sense and think it through smile.gif
  • fritz
    • Offline / Send Message
    • Joined
    • 89 Topics
    • 586 Replies
    in reference to the gc() thingy...a friend of mine says that people at his studio have to go through a couple of steps before entering in the "gc()" thingy. don't know if it will work...but worth a try.

    first go to: file > Xref objects > close the window
    then go to: file > Xref scenes > close the window

    the enter: gc() in the pink tab at the bottom left side of the max window.
  • Mark Dygert
    • Offline / Send Message
    • Joined
    • 237 Topics
    • 14.7K Replies
    I'm guessing its one of two things.

    1) Max crashed and you started using the file it tried to recover when it crashed. When it says "max will ATTEMPT to save your scene, but we don't think it will work... ever..." they mean it. Just use an autoback or previous save. Or do like what Rick suggested and merge it all into a new scene. If you only had a mesh in your scene I would suggest exporting it to .OBJ, and import that into a new fresh scene. That works really well at dumping any weird data Max has attached to a file.

    OR

    2) It's BiPed.
    The fast way to check if its extra BiPed data is to delete all bipeds and save, see if the file size drops drastically, if it does your issue might be a broken biped or a ton of biped pose/posture/track collections you didn't know you had.

    With a BiPed object selected go to the motion tab (wheel) under the copy/paste roll out look to see if you have a bunch of collections you didn't mean to have. More than likely if this is the case you accidentally hit hot key for auto capture collections or turned it on by mistake at some point.
  • conte
    • Offline / Send Message
    • Joined
    • 58 Topics
    • 2.7K Replies
    sorry, Paul, you right.
    fritz did my job ya!
    Edit: Just hide all models before saving, that should help.
    Also if you're hiding layers in photoshop, file will weight less too. (that told me J.Styles, long time ago)
  • MightyPea
    • Offline / Send Message
    • Joined
    • 107 Topics
    • 3.3K Replies
    Conte: isn't that just because of the 'full resolution composite', or is there something stranger going on?
  • conte
    • Offline / Send Message
    • Joined
    • 58 Topics
    • 2.7K Replies
    Pea, dunno really=)
    but it works!
  • Joshua Stubbles
    • Offline / Send Message
    • Joined
    • 173 Topics
    • 6.2K Replies
    Fritz - yeah, I had to do that exact same thing when working on Stacked. Our scenes would bloat to 50MB or so, then we'd run that process, and drop us down to about 6-7MB again.
    Funny thing is, we got that nice tidbit from our 3dsmax reseller agent. This was back with Max7. If they knew about it, I wonder why the hell Autodesk hasn't fixed it yet.
  • fritz
    • Offline / Send Message
    • Joined
    • 89 Topics
    • 586 Replies
    dunno. i have heard from lots of people that the files bloat due to excessive merging of objects n' stuff. i think there are lots of things autodesk could fix in max. haha.
  • Rick Stirling
    • Offline / Send Message
    • Joined
    • 262 Topics
    • 4.1K Replies
    [ QUOTE ]

    Funny thing is, we got that nice tidbit from our 3dsmax reseller agent. This was back with Max7. If they knew about it, I wonder why the hell Autodesk hasn't fixed it yet.

    [/ QUOTE ]

    Perhaps it just never made it into the codebase?
  • Joshua Stubbles
    • Offline / Send Message
    • Joined
    • 173 Topics
    • 6.2K Replies
    Could be, Rick. But still, after like 2 years or so you'd think they'd nail that one.
  • Husch
    • Offline / Send Message
    • Joined
    • 15 Topics
    • 91 Replies
    Thanx a lot to all of you! Vig, you saved my day. It was the biped and the auto collection. I deactivated the "Load Collection" Option in the copy/save rollout "Max Load Preferences".Then I loaded and saved my scenes again and it reduced the file size from 129 MB to 9 MB.
  • MoP
    • Offline / Send Message
    • Joined
    • 135 Topics
    • 11.5K Replies
    Hah, nice one - worth remembering.

Leave a Comment