scripts: add jq processing scripts for animation outputs

This commit is contained in:
Danny Robson 2020-03-17 15:54:42 +11:00
parent 389cba3f7d
commit 481c8aa424
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
./src/model-tool -c tree -i ~/src/lobo/assets/object/manModel.fbx 2>/dev/null | cruft/json/tools/format - | jq -cr ". as \$in | [\$in | leaf_paths] | map(select(.[0] == \"root\" and .[-1] == \"name\")) | map(. as \$path | \$in | getpath(\$path)) | join(\"\n\")"

View File

@ -0,0 +1 @@
./src/model-tool -c tree -i ~/src/lobo/assets/object/manModel@walk.fbx 2>/dev/null | cruft/json/tools/format - | jq -r ".animations[0].channels | map(.name) | join(\"\\n\")" | sort > walk.fields