flamenco-env/setup/setup.py

13 lines
281 B
Python
Raw Normal View History

2024-08-29 17:39:20 -04:00
import bpy
## CONFIGURATION ##
render_api = 'OPTIX' # NONE, CUDA, OPTIX, HIP, ONEAPI
## SETUP PREFS ##
bpy.context.preferences.addons["cycles"].preferences.compute_device_type = render_api
bpy.ops.wm.save_userpref()
2024-08-31 11:06:27 -04:00
# Exit blender now that we're done
bpy.ops.wm.quit_blender()