Enable module with legacy addon install method

This commit is contained in:
Alan O'Cull 2024-09-02 13:48:20 -04:00
parent 1d115e22f9
commit ad378d75ca

View File

@ -5,12 +5,13 @@ render_api = 'OPTIX' # NONE, CUDA, OPTIX, HIP, ONEAPI
hostname = 'http://localhost:8080/' hostname = 'http://localhost:8080/'
# LEGACY - Flamenco addon install, intended for Blender 4.1 and older # LEGACY - Flamenco addon install, intended for Blender 4.1 and older
# addon_path = '~/git/flamenco-env/workspace/flamenco-addon.zip' # addon_path = '/home/user/git/flamenco-env/workspace/flamenco-addon.zip'
# bpy.ops.preferences.addon_install(overwrite=True, filepath=addon_path) # bpy.ops.preferences.addon_install(overwrite=True, filepath=addon_path)
# bpy.ops.preferences.addon_enable(module="flamenco")
## SETUP PREFS ## ## SETUP PREFS ##
bpy.context.preferences.addons["cycles"].preferences.compute_device_type = render_api bpy.context.preferences.addons["cycles"].preferences.compute_device_type = render_api
bpy.context.preferences.addons['flamenco'].preferences.manager_urlz = hostname bpy.context.preferences.addons["flamenco"].preferences.manager_urlz = hostname
bpy.context.preferences.filepaths.use_scripts_auto_execute = True # Enable for Rigify bpy.context.preferences.filepaths.use_scripts_auto_execute = True # Enable for Rigify
bpy.ops.wm.save_userpref() bpy.ops.wm.save_userpref()