#!/bin/sh # Checks of the Mako against the ship and the docking arm, and of its own moving parts. One Blender at a time (full CPU, # below-normal priority is not needed for these short runs). The ship and arm files are opened read-only and never saved. B="/e/Steam/steamapps/common/Blender/blender.exe" cd "$(dirname "$0")/.." "$B" -b Tender_Mako.blend --python build/dump_mako.py 2>&1 | grep -E "DUMP|Traceback|Error" ; true "$B" -b Tender_Mako.blend --python build/motion_check.py 2>&1 | grep -E "MOTION|Traceback|Error" ; true "$B" -b ../M_Ship_v2_interior_season2.blend --python build/sweep_check.py 2>&1 | grep -E "Traceback|Error" ; true "$B" -b ../docking-arm/DockArm_Carousel.blend --python build/clamp_check.py 2>&1 | grep -E "CLAMP|HIT|Traceback|Error" ; true "$B" -b ../M_Ship_v2_interior_season2.blend --python build/clamp_check.py 2>&1 | grep -E "CLAMP|HIT|Traceback|Error" ; true "/e/Tools/Programs/Python/python.exe" -c " import json d = json.load(open('build/checks/sweep_and_moonpool.json')) print('sweep mako', d['mako'][0], d['mako'][1]) print('sweep kazah', d['kazah'][0]) print('larger', {k: v for k, v in d.items() if 'larger' in k}) print('moon pool at BOARD mako', d['moonpool_board_mako']) print('moon pool at BOARD kazah', d['moonpool_board_kazah']) "