v22
This commit is contained in:
parent
e7e7912211
commit
3aa9d129f1
4 changed files with 19 additions and 10 deletions
|
|
@ -138,13 +138,16 @@ base.data.materials.clear(); base.data.materials.append(mat)
|
|||
# ----------------------------- Vorschau-Render -----------------------------
|
||||
try:
|
||||
sc = bpy.context.scene
|
||||
# Meshy-tauglich: heller, neutraler Hintergrund + gleichmaessiges Licht
|
||||
try:
|
||||
bg = next((n for n in sc.world.node_tree.nodes if n.type == 'BACKGROUND'), None)
|
||||
if bg: bg.inputs[1].default_value = 1.2
|
||||
if bg:
|
||||
bg.inputs[0].default_value = (0.92, 0.92, 0.92, 1)
|
||||
bg.inputs[1].default_value = 1.6
|
||||
except Exception: pass
|
||||
bpy.ops.object.light_add(type='SUN', location=(140, -180, 260)); bpy.context.object.data.energy = 3.5
|
||||
bpy.ops.object.light_add(type='SUN', location=(140, -180, 260)); bpy.context.object.data.energy = 2.2
|
||||
bpy.ops.object.light_add(type='AREA', location=(-140, -60, 180))
|
||||
bpy.context.object.data.energy = 6000; bpy.context.object.data.size = 280
|
||||
bpy.context.object.data.energy = 9000; bpy.context.object.data.size = 320
|
||||
bpy.ops.object.empty_add(location=(0, 0, 5)); tgt = bpy.context.object
|
||||
bpy.ops.object.camera_add(location=(235, -295, 270)); cam = bpy.context.object
|
||||
cam.data.lens = 50
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue