Created
March 23, 2020 11:37
-
-
Save Theverat/0e1ab00c63fc15618be81f12a4410b7c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
images = [] | |
for image in bpy.data.images: | |
images.append((image.name, list(image.size), image.size[0] * image.size[1])) | |
images.sort(key=lambda elem: elem[2], reverse=True) | |
print("\nlargest images:") | |
for image in images: | |
print(image[1][0], "x", image[1][1], image[0]) | |
if image[2] < 500 * 500: | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment