Update blender_script.py

main
Zhen Liu 2023-04-15 15:46:24 +02:00 zatwierdzone przez GitHub
rodzic 21330db258
commit 935a015e9e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 7 usunięć

Wyświetl plik

@ -84,9 +84,7 @@ for k, meshPath in enumerate(path_list):
imgRes_x = 720 # recommend > 1080
imgRes_y = 720 # recommend > 1080
numSamples = 10 # for car
# numSamples = 100 # for car
# numSamples = 1000 # recommend > 200
numSamples = 10
exposure = 1.5
bpy.context.scene.render.film_transparent = True
bpy.context.scene.cycles.samples = numSamples
@ -119,10 +117,6 @@ for k, meshPath in enumerate(path_list):
mesh.location.z = mesh.location.z - minz
## save blender file so that you can adjust parameters in the UI
# bpy.ops.wm.save_mainfile(filepath=os.getcwd() + '/test.blend')
bpy.data.scenes['Scene'].render.filepath = out_file_path
bpy.ops.render.render(write_still = True)