kopia lustrzana https://github.com/vilemduha/blendercam
Workflows, I hate you...
rodzic
c06718aa99
commit
8a67d5d3c5
|
|
@ -5,6 +5,14 @@ import bpy
|
|||
|
||||
warnings.simplefilter("once")
|
||||
|
||||
try:
|
||||
bpy.context.preferences.addons["bl_ext.user_default.fabex"]
|
||||
except KeyError:
|
||||
print("Addon is not installed, attempting install...")
|
||||
bpy.context.preferences.system.use_online_access = True
|
||||
bpy.ops.extensions.repo_sync_all(use_active_only=False)
|
||||
bpy.ops.extensions.package_install_files(filepath=f"{sys.argv[1]}", repo="user_default")
|
||||
|
||||
# Get the scene
|
||||
s = bpy.context.scene
|
||||
s.render.engine = "FABEX_RENDER"
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ with tempfile.TemporaryDirectory() as td:
|
|||
stderr=subprocess.STDOUT,
|
||||
text=True,
|
||||
)
|
||||
print(subprocess.STDOUT)
|
||||
print("installed addon okay")
|
||||
sys.exit(0)
|
||||
except subprocess.CalledProcessError as e:
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue