#!/bin/sh # Checks of the Manta against the ship and the docking arm (run after dump_manta.py has written checks/manta_*.np*). # Both ship files are opened read-only in background Blenders and never saved. B="/e/Steam/steamapps/common/Blender/blender.exe" cd "$(dirname "$0")/.." "$B" -b ../M_Ship_v2_interior_season2.blend --python build/sweep_check.py 2>&1 | grep -E "Error|Traceback" ; 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 manta', d['manta'][0], d['manta'][1]) print('sweep kazah', d['kazah'][0]) print('wider', {k: v['side'] for k, v in d.items() if 'wider' in k}) print('moon pool at BOARD manta', d['moonpool_board_manta']) print('moon pool at BOARD kazah', d['moonpool_board_kazah']) "