File: render.sh

package info (click to toggle)
lincity-ng 2.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 186,616 kB
  • sloc: cpp: 31,237; xml: 23,019; ansic: 274; lisp: 189; python: 182; sh: 92; makefile: 18
file content (15 lines) | stat: -rwxr-xr-x 277 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e -x

mkdir -p tmp/
mkdir -p ../data/images/tiles.render/

for i in ../data/models/*.blend; do
    blender -b "$i"  -P render.py
    blender -b tmp/tmp.blend -a
    b=`basename $i`
    cp -v tmp/0001 "../data/images/tiles.render/${b%%.blend}.png"
done

# EOF #