Add setup script to select Cycles
This commit is contained in:
parent
8a8fffd96b
commit
d5b7a44cfd
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
blender_autocomplete/
|
||||
workspace/
|
12
.vscode/settings.json
vendored
Normal file
12
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"python.autoComplete.extraPaths": [
|
||||
"blender_autocomplete/4.1"
|
||||
],
|
||||
"python.linting.pylintArgs": [
|
||||
"--init-hook",
|
||||
"import sys; sys.path.append('blender_autocomplete/4.1')"
|
||||
],
|
||||
"python.analysis.extraPaths": [
|
||||
"blender_autocomplete/4.1"
|
||||
],
|
||||
}
|
@ -13,7 +13,7 @@ A more detailed setup can be found below, although these are intended specifical
|
||||
3. Mount said directory: `$ sudo mount -t nfs {hostname}:/srv/flamenco srv/flamenco`
|
||||
|
||||
## Setup Blender
|
||||
1. Install specified [Blender](https://www.blender.org/download/) version (will have a script for this)
|
||||
1. Install specified [Blender](https://download.blender.org/release/) version
|
||||
2. Add the Blender directory/executable to your PATH (can be an environment variable) so running `blender` runs the software
|
||||
3. For everyone (*optional* for Manager), configure Blender:
|
||||
- Workers and end-user **MUST** have Flamenco add-on, need to install from file downloaded from your Flamenco manager
|
||||
@ -39,3 +39,10 @@ scroll to the Flamenco section at the bottom, and configure accordingly.
|
||||
Be sure to select your output and job type.
|
||||
|
||||
Upon submitting a job, your file should be automatically packed and sent to Flamenco. Congrats!
|
||||
|
||||
# Development
|
||||
For writing Python, you'll want to download the Blender Autocomplete repository.
|
||||
`$ git clone https://github.com/Korchy/blender_autocomplete.git`
|
||||
|
||||
- [Installing Extensions via Terminal](https://docs.blender.org/manual/en/latest/advanced/command_line/extension_arguments.html)
|
||||
- [Rendering from Command-Line](https://docs.blender.org/manual/en/latest/advanced/command_line/render.html)
|
||||
|
9
setup/setup.py
Normal file
9
setup/setup.py
Normal file
@ -0,0 +1,9 @@
|
||||
import bpy
|
||||
|
||||
## CONFIGURATION ##
|
||||
render_api = 'OPTIX' # NONE, CUDA, OPTIX, HIP, ONEAPI
|
||||
|
||||
## SETUP PREFS ##
|
||||
bpy.context.preferences.addons["cycles"].preferences.compute_device_type = render_api
|
||||
|
||||
bpy.ops.wm.save_userpref()
|
3
setup/setup.sh
Normal file
3
setup/setup.sh
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
# Download blender from URL and write it to workspace
|
||||
wget https://download.blender.org/release/$1/$2 -O workspace/$2
|
Loading…
Reference in New Issue
Block a user