From 7c3d8127daf1f32858076484d07fd8a6e96a3fb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vil=C3=A9m=20Duha?= Date: Tue, 21 Jan 2020 16:57:54 +0100 Subject: BlenderKit: add several autotags megapixels checks number of total pixels in textures. procedural, node count and texture count will help in heuristics and advanced searches. --- blenderkit/upload.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'blenderkit/upload.py') diff --git a/blenderkit/upload.py b/blenderkit/upload.py index eaa0e6d3..f2f295e5 100644 --- a/blenderkit/upload.py +++ b/blenderkit/upload.py @@ -232,6 +232,10 @@ def get_upload_data(self, context, asset_type): "manifold": props.manifold, "objectCount": props.object_count, + "procedural": props.is_procedural, + "nodeCount": props.node_count, + "textureCount": props.texture_count, + "megapixels": round(props.total_megapixels/ 1000000), # "scene": props.is_scene, } if props.use_design_year: @@ -359,6 +363,7 @@ def get_upload_data(self, context, asset_type): "procedural": props.is_procedural, "nodeCount": props.node_count, "textureCount": props.texture_count, + "megapixels": round(props.total_megapixels/ 1000000), } -- cgit v1.2.3