Setup script now installs Flamenco
This commit is contained in:
parent
6b7a50147a
commit
d984752286
2
Makefile
2
Makefile
@ -7,4 +7,4 @@ clean:
|
||||
|
||||
setup:
|
||||
@mkdir -p workspace/
|
||||
@./setup/setup.sh Blender4.2 blender-4.2.1-linux-x64.tar.xz
|
||||
@./setup/setup.sh Blender4.2 blender-4.2.1-linux-x64.tar.xz http://localhost:8080
|
||||
|
@ -2,9 +2,11 @@ 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()
|
||||
|
||||
|
@ -2,7 +2,8 @@ TARBALL=$2
|
||||
DIRECTORY="workspace/${TARBALL%.tar.xz}"
|
||||
BINARY=$DIRECTORY/blender
|
||||
SCRIPTS=$(pwd)/setup
|
||||
echo $TARBALL - $DIRECTORY - $BINARY - $SCRIPTS
|
||||
HOST=$3
|
||||
echo $TARBALL - $DIRECTORY - $BINARY - $SCRIPTS - $HOST
|
||||
|
||||
# Create directory for writing
|
||||
mkdir -p workspace/
|
||||
@ -11,9 +12,16 @@ rm -rf workspace/$DIRECTORY/
|
||||
|
||||
# Download blender from URL and write it to workspacem and extract the tarball
|
||||
wget https://download.blender.org/release/$1/$TARBALL -O workspace/$TARBALL
|
||||
echo "Extracting $TARBALL..."
|
||||
tar -xf workspace/$TARBALL -C workspace/
|
||||
|
||||
# Export binary location and perform setup
|
||||
# Export binary location
|
||||
export blender=workspace/$BINARY
|
||||
echo | whereis blender
|
||||
|
||||
# Download the extension from Flamenco and install it
|
||||
wget $HOST/flamenco-addon.zip -O workspace/flamenco-addon.zip
|
||||
blender --command extension install-file -r user_default -e workspace/flamenco-addon.zip
|
||||
|
||||
# Finally, perform setup scripts
|
||||
blender -b -P $SCRIPTS/setup.py
|
||||
|
Loading…
Reference in New Issue
Block a user