#!/bin/sh # Grouper: quick loop while working on the geometry: build a new file, fold audit, wireframes (TAG) B="/e/Steam/steamapps/common/Blender/blender.exe" cd "$(dirname "$0")/.." TAG=${1:-wip} "$B" -b --factory-startup --python build/run_build_headless.py 2>&1 | grep -E "SAVED|Traceback|Error|AUDIT.*Hull'|line [0-9]" | cut -c1-300 "$B" -b Tender_Grouper.blend --python build/gr_fold_audit.py 2>&1 | grep -E "TWIST faces|TWIST >90|BIG" | cut -c1-300 | head -${2:-24} "$B" -b Tender_Grouper.blend --python build/gr_preview.py -- wire tag="$TAG" 2>&1 | grep -E "PREVIEW|Traceback|Error"