0
$\begingroup$

I'm new to blender.

I have a big .blend file and I need to decrease the size of the textures. How can I do it programmatically?

$\endgroup$
1
1
$\begingroup$

Asked many times

To quickly scale all images in .blend to given size:

import bpy
for img in bpy.data.images:
    try:
        # for empty render result image, etc.
        img.scale(512, 512) # (width, height)
    except:
        pass
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.