flamenco-env/setup/setup.py

15 lines
395 B
Python

import bpy
## CONFIGURATION ##
render_api = 'OPTIX' # NONE, CUDA, OPTIX, HIP, ONEAPI
hostname = 'http://localhost:8080/'
## SETUP PREFS ##
bpy.context.preferences.addons["cycles"].preferences.compute_device_type = render_api
bpy.context.preferences.addons['flamenco'].preferences.manager_url = hostname
bpy.ops.wm.save_userpref()
# Exit blender now that we're done
bpy.ops.wm.quit_blender()