From 1d115e22f906e7229290ffc3ba144c114a96e4ac Mon Sep 17 00:00:00 2001 From: Alan O'Cull Date: Mon, 2 Sep 2024 13:35:37 -0400 Subject: [PATCH] Add legacy addon-install to script --- .vscode/settings.json | 3 ++- setup/setup.py | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 5b6e2f0..1919cb5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,6 +7,7 @@ "import sys; sys.path.append('blender_autocomplete/4.1')" ], "python.analysis.extraPaths": [ - "blender_autocomplete/4.1" + "blender_autocomplete/4.1", + "./workspace/blender-4.2.1-linux-x64/4.2/scripts/modules" ], } \ No newline at end of file diff --git a/setup/setup.py b/setup/setup.py index e95185e..e1826fc 100644 --- a/setup/setup.py +++ b/setup/setup.py @@ -4,9 +4,13 @@ import bpy render_api = 'OPTIX' # NONE, CUDA, OPTIX, HIP, ONEAPI 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 ## 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.ops.wm.save_userpref()