0
$\begingroup$

I have a .blend file. When I delete objects and save or save a copy, the file size continues to grow not shrink.

For example, I have a file that is 228 MB. I need to be under 200 MB to import to Sketchfab. So I delete a few objects but the file size never changes. In fact, I can delete all objects and that has no effect on the saved file size.

What is the proper way to purge objects from a model?

$\endgroup$
9
  • 1
    $\begingroup$ Have you tried File > Clean Up > Unused Data blocks before saving? $\endgroup$
    – John Eason
    Mar 14 at 17:13
  • $\begingroup$ John, thank you for helping me. I tries your suggestion. I got an alert stating that there were no unused data blocks. I saved and file size remained the same. $\endgroup$
    – mckinney3
    Mar 14 at 18:51
  • 1
    $\begingroup$ Do you have the materials packed into your blend file? It sounds as if Blender thinks they may be still in use so won't remove them. Try selecting 'Orphan Data' from the dropdown at the top of the Outliner and see what's listed there. Anything with a 0 against it is unused. Click the Purge button at the top right of the header and then 'Click here to proceed...' and see if that reduces the size. $\endgroup$
    – John Eason
    Mar 14 at 19:01
  • $\begingroup$ Again thank you , John. I tried this advice. Only dropped file size from 228 MB to 225 MB. Something huge gobbling up files size. I am trying , out of frustration, just to rebuild the whole scene one object at a time. So far, file size is not growing in size out of proportion with objects that are placed. I am using the brute force method of copying an object from the bloated file and pasting into the reconstructed file. Thoughts, ideas, suggestions? And thank you! $\endgroup$
    – mckinney3
    Mar 14 at 20:39
  • $\begingroup$ No idea why it should have got so bloated in that case I'm afraid. I suspect that your method of starting with a new file and copying from the bloated file is probably the best way to go forward. $\endgroup$
    – John Eason
    Mar 14 at 21:38

1 Answer 1

2
$\begingroup$

The outliner should tell what's in your file. And it has different Display Modes that can tell you different things.

Checking Orphan Data

orphan data display mode

One I would be curious to look in your file is the Orphan Data:

On a new scene, you should see only the default Brushes and the Viewer Node's Image:

default state

These are technically "unused" but are marked with a fake user so that Blender doesn't get rid of them when reloading the file.

Maybe some of your meshes or other data that you don't need are still there. In which case, you can uncheck the Shield icon, then hit the Purge button (which does the same thing as the menu File > Clean Up > Unused Data-Blocks) to remove every unprotected orphan, and save again.

When you purge, some data blocks might become orphans because of the purge (for example, image textures in a material). Hence, you might see new orphans after a purge. In that case, you can either keep spamming the Purge button, or use this menu instead:

recursive purge

Another interesting Display Mode is the Blender File.

Seeing all data blocks

blender file display mode

Here you could see most of the data blocks you can ever need (unless you're programming something, then it's probably the Data API Display Mode that interests you).

If for example you have linked or imported some data, it will be displayed there. You can select things and RMB RMB > Delete.

I would check the orphans data after cleaning there, just in case.

If you have used scenes, view layers and whatnot, some objects might have been hidden from you on the default outliner's display mode or viewport, but this will show you everything regardless.

This could also be an occasion to look for duplicates, both in objects and data, to see if the duplicated objects could have shared the same data instead of each having a duplicate of the same thing, or other oddities that could be optimized.

Also as a side note:

Since your goal is to lighten your file for uploading on sketchfab, then you could in theory delete some of the stuff sketchfab doesn't need either. Like brushes, screens and workspaces. It will not make a huge difference, but it could.

A few more

Since your file gets bigger when adding and deleting objects, maybe you have this option turned on under the menu File?

auto pack option

Maybe try turning it off and see if that occurs again.

Then finally, the ultimate way to reduce the file size is to compress it using File > Save As > enable compress in the explorer's sidebar:

compress option

If you don't see that sidebar, click the little < arrow on the right border or press N.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .