#!/bin/sh # The whole nutrition feeder pipeline, headless, one Blender at a time: # sh build/run_all.sh [TAG] (TAG names the picture set, default v01) # UI texture, build (from scratch: NutritionFeeder.blend is rewritten), surfaces (UVs, bake, materials), checks, # export (UCX, FBX, layout JSON), FBX re-import check, Cycles pictures, wireframes, the side-by-side with the picture. B="/e/Steam/steamapps/common/Blender/blender.exe" P="/e/Tools/Programs/Python/python.exe" cd "$(dirname "$0")" TAG=${1:-v01} "$P" nf_screen_ui.py "$B" -b --factory-startup --python nf_build.py 2>&1 | grep -E "BUILD OK|Traceback|rror:" | cut -c1-300 "$B" -b ../NutritionFeeder.blend --python nf_surfaces.py 2>&1 | grep -E "SURFACES OK|Traceback|rror:" "$B" -b ../NutritionFeeder.blend --python nf_check.py 2>&1 | grep -E "CHECK|Traceback|rror:" | cut -c1-300 "$B" -b ../NutritionFeeder.blend --python nf_export.py 2>&1 | grep -E "EXPORT OK|Traceback|rror:" "$B" -b --factory-startup --python nf_verify_fbx.py 2>&1 | grep -E "VERIFY|Traceback|rror:" "$B" -b ../NutritionFeeder.blend --python nf_render.py -- $TAG 2>&1 | grep -E "RENDERS OK|Traceback|rror:" | cut -c1-80 "$B" -b ../NutritionFeeder.blend --python nf_preview.py -- wire 2>&1 | grep -E "PREVIEW OK|Traceback|rror:" | cut -c1-80 "$P" nf_compare.py $TAG "$P" nf_compare.py $TAG --bloom echo "ALL DONE $TAG"