[Bf-python] purging datablocks via python
Martin Poirier
theeth at yahoo.com
Tue Jan 17 22:22:18 CET 2006
--- Tom M <letterrip at gmail.com> wrote:
> Hi,
>
> a script author mentioned the following,
>
> [QUOTE]Honestly, the only major Blender Python issue
> plaguing me is
> the lack of ability to purge the Library properly.
> No matter what
> code I add to the script to try to get Blender to
> cleanup old unused
> Datablocks (I _have_ to create alot of temporary
> objects in my
> script), the _only_ way to get rid of the data is to
> save, close
> blender, reopen the file, save, close, & reopen.
> The filesize of the
> .blend for our project drops from 800 MB to 75MB
> after doing
> this.[/QUOTE]
Even Blender itself doesn't purge datablocks, so I
doubt this will every get in the API.
> This is probably something for 2.42 but, is there a
> workaround? I
> seem to recall mention of a way to hackishly do this
> via python...
Save and reload
Martin
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Bf-python
mailing list