adding animatronical assets
This commit is contained in:
parent
c60a0ce031
commit
5796b5c582
236 changed files with 139 additions and 1 deletions
18
games/animatronical/q1/a1/ressrc/render.py
Normal file
18
games/animatronical/q1/a1/ressrc/render.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import os
|
||||
import bpy
|
||||
modes=["on","off","urcooked"]
|
||||
sides=['s','n','r','l']
|
||||
quality=99
|
||||
frame=0
|
||||
cmd=os.path.dirname(os.path.abspath(__file__))
|
||||
path=os.path.join(cmd,"../res/map")
|
||||
|
||||
for mode in modes:
|
||||
for side in sides:
|
||||
for i in range(17):
|
||||
out=os.path.abspath(f"{path}/{mode}/{side}/{i}.jpg")
|
||||
os.makedirs(os.path.dirname(out),exist_ok=True)
|
||||
bpy.context.scene.render.filepath=out
|
||||
bpy.context.scene.render.image_settings.file_format='JPEG'
|
||||
bpy.context.scene.render.image_settings.quality=quality
|
||||
bpy.ops.render.render(write_still=True)
|
||||
Loading…
Add table
Add a link
Reference in a new issue