xrforge/manyfold/root/hook.d/inotify_MODIFY/create_yaml.sh
2025-10-27 15:03:17 +01:00

19 lines
539 B
Bash

#!/bin/sh
echo "$1" | grep datapackage || exit 0 # nothing to do
dir=$(dirname $1)
cd "$dir"
test -f xrforge.yml || exit 0 # nothing to do
echo '--- # xrforge yaml v0.1
scene:
version: 1.0
xrf:
links: yes # add links from datapackage.json#/links [rezstyle fontmap / ruler]
sidecar_json: yes # add links from <experience>.json sidecar-file (https://xrfragment.org)
texture:
export: yes # extract textures from uploaded 3D file
import: yes # import uploaded texture to 3D file (when name matches)
' > xrforge.yaml