#!/bin/sh # The whole robot cell pipeline, headless, one Blender at a time: # sh build/run_all.sh [TAG] (TAG names the picture set, default v01) # drawn textures, build (from scratch: RobotCell.blend is rewritten), the travel check, surfaces (UVs, bakes, # materials), export (UCX, FBX, layout JSON), FBX re-import check, Cycles pictures, wireframes, the side-by-side. # rc_fit.py (the camera) and rc_fitpose.py (the robot's pose) were run once; their results are in rc_lib.py and # build/pose_fit.json. B="/e/Steam/steamapps/common/Blender/blender.exe" P="/e/Tools/Programs/Python/python.exe" cd "$(dirname "$0")" TAG=${1:-v01} "$P" rc_textures.py "$B" -b --factory-startup --python rc_build.py 2>&1 | grep -E "BUILD OK|Traceback|rror:" | cut -c1-120 "$B" -b ../RobotCell.blend --python rc_check.py 2>&1 | grep -E "^CHECK|Traceback|rror:" | cut -c1-120 "$B" -b ../RobotCell.blend --python rc_surfaces.py 2>&1 | grep -E "SURFACES OK|Traceback|rror:" | cut -c1-120 "$B" -b ../RobotCell.blend --python rc_export.py 2>&1 | grep -E "EXPORT OK|Traceback|rror:" | cut -c1-120 "$B" -b --factory-startup --python rc_verify_fbx.py 2>&1 | grep -E "VERIFY|Traceback|rror:" "$B" -b ../RobotCell.blend --python rc_render.py -- $TAG 2>&1 | grep -E "RENDERS OK|Traceback|rror:" | cut -c1-80 "$B" -b ../RobotCell.blend --python rc_preview.py 2>&1 | grep -E "PREVIEW OK|Traceback|rror:" | cut -c1-80 "$P" rc_compare.py $TAG echo "ALL DONE $TAG" # the copy with the moon pool's door robot arm (RobotCell_DoorArm.blend), made from the finished RobotCell.blend "$B" -b ../RobotCell.blend --python rc_doorarm.py 2>&1 | grep -E "DOORARM OK|Traceback|rror:" | cut -c1-80 "$B" -b ../RobotCell_DoorArm.blend --python rc_check.py -- arm=RC_DoorArm_Rig mesh=SK_RobotCell_DoorArm tag=doorarm 2>&1 | grep -E "^CHECK|Traceback|rror:" | cut -c1-80 "$B" -b ../RobotCell_DoorArm.blend --python rc_export.py -- variant=DoorArm 2>&1 | grep -E "EXPORT OK|Traceback|rror:" | cut -c1-120 "$B" -b ../RobotCell_DoorArm.blend --python rc_render.py -- doorarm_$TAG shots=picture,q_front_left,open,robot,tool,torch 2>&1 | grep -E "RENDERS OK|Traceback|rror:" | cut -c1-80 "$B" -b --factory-startup --python rc_verify_fbx.py 2>&1 | grep -E "VERIFY|Traceback|rror:" echo "DOOR ARM COPY DONE"