#!/bin/sh # Blender -> FBX export of the Unity port (U2A): sh tools/blender/export_fbx.sh [id,id,...] # Without ids every asset of tools/blender/export_manifest.json is exported. Needs Blender 5.2 # (BLENDER, default "blender") and the Godot reference (GODOT_PROJECT, default ../saumwacht-godot). # PYTHONHASHSEED=0 with --python-use-system-env makes the FBX object ids reproducible. set -eu cd "$(dirname "$0")/../.." BLENDER="${BLENDER:-blender}" GODOT_PROJECT="${GODOT_PROJECT:-../saumwacht-godot}" PYTHONHASHSEED=0 "$BLENDER" --background --factory-startup --python-use-system-env \ --python tools/blender/lune_fbx_export.py -- --godot "$GODOT_PROJECT" --ids "${1:-}"