Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVilém Duha <vilda.novak@gmail.com>2020-12-09 01:40:03 +0300
committerVilém Duha <vilda.novak@gmail.com>2020-12-09 01:40:14 +0300
commit1191a172ac389e3d068a8ef7d16f36457e67e3bc (patch)
tree8ec9ed104dc4ed1f68860a15bf362dc00f675f50 /blenderkit
parent236ce9e84674e51ad8542bf8674c36d08b39fcc6 (diff)
BlenderKit: improve model thumbnail generator
Diffstat (limited to 'blenderkit')
-rw-r--r--blenderkit/__init__.py2
-rw-r--r--blenderkit/autothumb_model_bg.py20
-rw-r--r--blenderkit/blendfiles/thumbnailer.blendbin217324 -> 297416 bytes
3 files changed, 11 insertions, 11 deletions
diff --git a/blenderkit/__init__.py b/blenderkit/__init__.py
index 2a98518c..b02985e0 100644
--- a/blenderkit/__init__.py
+++ b/blenderkit/__init__.py
@@ -970,7 +970,7 @@ class BlenderKitModelUploadProps(PropertyGroup, BlenderKitCommonUploadProps):
update=autothumb.update_upload_model_preview)
thumbnail_background_lightness: FloatProperty(name="Thumbnail Background Lightness",
- description="set to make your material stand out", default=.9,
+ description="set to make your material stand out", default=1.0,
min=0.01, max=10)
thumbnail_angle: EnumProperty(
diff --git a/blenderkit/autothumb_model_bg.py b/blenderkit/autothumb_model_bg.py
index 9173391e..fe58a52f 100644
--- a/blenderkit/autothumb_model_bg.py
+++ b/blenderkit/autothumb_model_bg.py
@@ -139,19 +139,19 @@ if __name__ == "__main__":
bpy.context.view_layer.update()
# import blender's HDR here
- hdr_path = Path('datafiles/studiolights/world/interior.exr')
- bpath = Path(bpy.utils.resource_path('LOCAL'))
- ipath = bpath / hdr_path
- ipath = str(ipath)
+ # hdr_path = Path('datafiles/studiolights/world/interior.exr')
+ # bpath = Path(bpy.utils.resource_path('LOCAL'))
+ # ipath = bpath / hdr_path
+ # ipath = str(ipath)
# this stuff is for mac and possibly linux. For blender // means relative path.
# for Mac, // means start of absolute path
- if ipath.startswith('//'):
- ipath = ipath[1:]
-
- img = bpy.data.images['interior.exr']
- img.filepath = ipath
- img.reload()
+ # if ipath.startswith('//'):
+ # ipath = ipath[1:]
+ #
+ # img = bpy.data.images['interior.exr']
+ # img.filepath = ipath
+ # img.reload()
bpy.context.scene.render.resolution_x = int(data['thumbnail_resolution'])
bpy.context.scene.render.resolution_y = int(data['thumbnail_resolution'])
diff --git a/blenderkit/blendfiles/thumbnailer.blend b/blenderkit/blendfiles/thumbnailer.blend
index 4a27eeab..07b0619c 100644
--- a/blenderkit/blendfiles/thumbnailer.blend
+++ b/blenderkit/blendfiles/thumbnailer.blend
Binary files differ