10 lines
219 B
Python
10 lines
219 B
Python
|
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()
|