Change the way we pass resolution to blender
This commit is contained in:
parent
484f43a2f4
commit
941ab0315d
1 changed files with 6 additions and 3 deletions
|
@ -5,8 +5,11 @@ import sys
|
||||||
import math
|
import math
|
||||||
|
|
||||||
|
|
||||||
bpy.context.scene.cycles.resolution_x = int(sys.argv[-5])
|
for scene in bpy.data.scenes:
|
||||||
bpy.context.scene.cycles.resolution_y = int(sys.argv[-4])
|
scene.render.resolution_x = int(sys.argv[-5])
|
||||||
|
scene.render.resolution_y = int(sys.argv[-4])
|
||||||
|
scene.render.resolution_percentage = 100
|
||||||
|
scene.render.use_border = False
|
||||||
|
|
||||||
for i, name in enumerate(['bottom', 'top', 'left', 'right', 'back', 'front']):
|
for i, name in enumerate(['bottom', 'top', 'left', 'right', 'back', 'front']):
|
||||||
bpy.data.images[name].filepath = "%s" % sys.argv[-6 - i]
|
bpy.data.images[name].filepath = "%s" % sys.argv[-6 - i]
|
||||||
|
|
Loading…
Reference in a new issue