Introduction
Introduction Statistics Contact Development Disclaimer Help
blender-effect - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
blender-effect (722B)
---
1 #!/bin/sh
2 # https://docs.blender.org/manual/en/latest/advanced/command_line/render…
3
4 if [ "$#" -lt 2 ]
5 then
6 printf 'usage: %s effect-name model-name [param=value]\n' "${0##…
7 exit 1
8 fi
9
10 export EFFECT="$1"
11 export NAME="$2"
12 shift 2
13
14 BLENDER=blender-3.2
15 BLEND_DIR="$(dirname "$0")/modules/blender"
16 IMAGE_DIR=/br/gopher/memecache/3d
17 IMAGE_NAME="$(mktemp "$NAME.XXXXXXXX")"
18
19 # turn "key1=value key2=value key3=value" into variables used by blender…
20 for x in "$@"
21 do
22 export "var_$1"
23 done
24
25 ${BLENDER} --background \
26 "${BLEND_DIR}/${NAME}.blend" \
27 -E CYCLES \
28 --python "${BLEND_DIR}/effect.py" \
29 --render-output "${IMAGE_DIR}/${IMAGE_NAME}." \
30 --render-frame 1 \
31 >&2 \
32 && echo "${IMAGE_NAME}.0001.png"
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.