Add legacy addon-install to script
This commit is contained in:
parent
158ba5fba4
commit
1d115e22f9
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -7,6 +7,7 @@
|
|||||||
"import sys; sys.path.append('blender_autocomplete/4.1')"
|
"import sys; sys.path.append('blender_autocomplete/4.1')"
|
||||||
],
|
],
|
||||||
"python.analysis.extraPaths": [
|
"python.analysis.extraPaths": [
|
||||||
"blender_autocomplete/4.1"
|
"blender_autocomplete/4.1",
|
||||||
|
"./workspace/blender-4.2.1-linux-x64/4.2/scripts/modules"
|
||||||
],
|
],
|
||||||
}
|
}
|
@ -4,9 +4,13 @@ import bpy
|
|||||||
render_api = 'OPTIX' # NONE, CUDA, OPTIX, HIP, ONEAPI
|
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
|
||||||
|
# addon_path = '~/git/flamenco-env/workspace/flamenco-addon.zip'
|
||||||
|
# bpy.ops.preferences.addon_install(overwrite=True, filepath=addon_path)
|
||||||
|
|
||||||
## 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_url = 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()
|
||||||
|
Loading…
Reference in New Issue
Block a user